Re: sudo shell script

2002-03-08 Thread Mike Fedyk
On Fri, Mar 08, 2002 at 08:22:14PM -0600, Lance Hoffmeyer wrote: > Is there a way to enter ones password for sudo when putting sudo in > a script? Something akin to > > sudo -p mypassword mv /var/log/exim/mainlog . > If the commands are executed within the password timeout, then it'll ask once,

sudo shell script

2002-03-08 Thread Lance Hoffmeyer
Is there a way to enter ones password for sudo when putting sudo in a script? Something akin to sudo -p mypassword mv /var/log/exim/mainlog . Lance -- Lance Hoffmeyer [EMAIL PROTECTED] --