Neminath has asked for the wisdom of the Perl Monks concerning the following question:
I have trouble in executing command.
The command requires root privileges. on my ubuntu box i need to use sudo command which ask for a password which makes my script interactive; which i don't want. Is there any way to avoid it.
Any idea something like if i invoke my script with root privileges those privileges are inherited to commands in the script which avoids prompting of password each time.
Ubuntu does not allow to login as root.
so privileged commands has to be prefixed with sudo.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Executing unix command from script
by Tanktalus (Canon) on Jul 08, 2008 at 16:47 UTC | |
Re: Executing unix command from script
by pc88mxer (Vicar) on Jul 08, 2008 at 16:41 UTC | |
Re: Executing unix command from script
by moritz (Cardinal) on Jul 08, 2008 at 17:04 UTC | |
Re: Executing unix command from script
by taffer (Novice) on Jul 08, 2008 at 16:49 UTC | |
Re: Executing unix command from script
by sgifford (Prior) on Jul 09, 2008 at 02:29 UTC | |
Re: Executing unix command from script
by philipbailey (Curate) on Jul 08, 2008 at 20:47 UTC |
Back to
Seekers of Perl Wisdom