Re: Exicuting scripts with sudo

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: Exicuting scripts with sudo
On Fri, 17 Dec 2004, Rob Wultsch wrote:

> Howdy all. I am have a bit of difficulty executing a script using sudo.
> If a script "script.sh" exists someplace (lets say /some/place) what
> is the syntax to execute the script?
> I would thing that :
> $sudo . /some/place/script.sh
> would do the trick, except it has not.


What is the error?

You should get rid of the ". ". Or you may get:

sudo: .: command not found

Also make sure that /some/place/script.sh is readable and executable. Does
it work without sudo?

> This is on a OSX.3 machine (not quite linux but for what I am doing it
> should be close enough).


Jeremy C. Reed

                 technical support & remote administration
                http://www.pugetsoundtechnology.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss