Re: Exicuting scripts with sudo

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Kevin
Fecha:  
A: plug-discuss
Asunto: 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