Re: Exicuting scripts with sudo

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Kevin
Dátum:  
Címzett: plug-discuss
Tárgy: 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