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, otherwise it'll ask again.  How long is your timeout?

Reply via email to