Is there a reason you cannot use the NOPASSWD option in sudo?  Maybe this is
not how it works in OSX, but what you'd normally do is to edit /etc/sudoers
to allow this particular user to perform this particular command with the no
password option, and its done.  If you do this, the command can be limited
to one with specific options.  For instance, you can allow shutdown with the
-h option, but not the -r option.  No-one has to know the root password then
and it is not written anyplace.  Yes, you do have to know it to edit
/etc/sudoers.
-- 
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Shell-Command-with-Sudo-tp2251593p2252593.html
Sent from the Revolution - User mailing list archive at Nabble.com.
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to