exit code ?

Todd C. Miller Todd.Miller at courtesan.com
Mon Mar 27 18:15:35 EST 2000

In message <38DFDED8.D2A8B911 at psoft.net>
	so spake Boris Mizhen (bmizhen):

> Does anyone know how to get exit code from the program i run by sudo ?
> e.g:  sudo  /bin/ls
> How do i get exit code from /bin/ls ??

You mean from the shell?  For csh/tcsh it is in $status, for
sh/ksh/bash it is in $?

 - todd

More information about the sudo-users mailing list