Re: Exicuting scripts with sudo

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin
Date:  
To: plug-discuss
Subject: Re: Exicuting scripts with sudo
On Fri, 2004-12-17 at 12:33, Rob Wultsch wrote:
> $sudo . /some/place/script.sh


Not sure what you are trying to achieve with the dot (.) between sudo
and the path. Works without it.

$ echo -e "#! /bin/bash \n echo foobar" > deleteme.sh
$ chmod +x deleteme.sh

$ sudo . /home/kevin/deleteme.sh
sudo: .: command not found

$ sudo /home/kevin/deleteme.sh
foobar

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