On Oct 26, 2007, at 6:10 AM, Rich wrote:

Hi folks.

Just wondering how I get into superuser (sudo or su) using a shell script. I am trying to back up the following to a folder on my desktop:

/usr/local/mysql/*
/etc/httpd/httpd.conf
/etc/httpd/users/*

Given the unique permissions on this, my shell script has to run as superuser. I tried this:

sudo;

blah...;

I get an error in both BBEdit's feedback, and run in the Terminal, I get this as feedback:

usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
            { -e file [...] | -i | -s | <command> }

Any clues?

I may not be following you entirely, but why not, for some backup script "blah":

$ sudo blah

?


--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to