[SLUG] shell script question

From: Russell Hires (sollust@earthlink.net)
Date: Wed Jan 29 2003 - 11:57:10 EST


Background: I'm running a shell command in sh via Applescript in Apple's OS X
to restart the computer (from OS X to OS 9), but I have to use the sudo
command. (We have a lab full of Macs that constantly go back and forth
between the OS's)

About the sudo command: when you run a shell script in this basic form: sudo
<command>, you get a prompt back asking for the password. How do I make the
script know that the prompt has appeared, and then fill in the password?

Thanks for your help!

Russell



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 13:54:18 EDT