It looks to me like something is replacing your command before it gets
executed. I have no idea what could be doing that but  what is being
entered as

/usr/bin/psql -l | grep '$name *|'


is then being changed to

/usr/bin/psql -c '\du' | grep 'puser *|'


so -l is being changed to -c '\du'. Both of these are valid psql commands.

On 25/02/2010 16:34, Andrew Hamilton wrote:
> I tried Michael's suggestion above and when running it from the
> command line, it does complete successfully.  It returns 0 when the
> user exists and 1 when it doesn't.  Does that make sense?  Anyway,
> inserting the pipe back into it produces the same error as before. 
> It's perplexing...
>

-- 

Trevor Hemsley
Infrastructure Engineer
.................................................
* C A L Y P S O
* Brighton, UK   

OFFICE  +44 (0) 1273 666 350
FAX     +44 (0) 1273 666 351

.................................................
www.calypso.com

This electronic-mail might contain confidential information intended
only for the use by the entity named. If the reader of this message is
not the intended recipient, the reader is hereby notified that any
dissemination, distribution or copying is strictly prohibited.

* P * /*/ Please consider the environment before printing this e-mail /*/

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to