Fwd: Re: exit code ?

George Meharry II gmeharry at yahoo.com
Tue Mar 28 09:15:59 EST 2000

I think the question is how to get the $status from
the command sudo executed.

sudo /bin/csh -c "( /usr/bin/ls ; echo $status )"
might be what you're after (of course you'll probably
want to avoid output from the command).


Note: forwarded message attached.

Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
-------------- next part --------------
An embedded message was scrubbed...
From: "Todd C. Miller" <Todd.Miller at courtesan.com>
Subject: Re: exit code ? 
Date: Mon, 27 Mar 2000 16:15:35 -0700
Size: 1857
URL: </pipermail/sudo-users/attachments/20000328/6e45a67f/attachment.mht>

More information about the sudo-users mailing list