[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sudo shell script



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
                              lance@augustmail.com

-------------------------------------------------------------------------------
The propagandist's purpose is to make one set of people forget that certain other
                            sets of psople are human
                                       -
                                 Aldous Huxley



Reply to: