Re: Exicuting scripts with sudo

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Kevin
日付:  
To: plug-discuss
題目: 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