logging as root using python script
joeldg at gmail.com
joeldg at gmail.com
Thu Apr 7 12:39:34 EDT 2005
use the program called 'expect'
it can be called via python.
you can build a script using the 'autoexpect' tool.
http://www.linuxjournal.com/article/3065
cheers
Raghul wrote:
> Hi
> Is it possible to login as a root in linux using python script?
> What I need is when I execute a script it should login as root and
> execute my command and logout from root to my existing account. IS is
> possible?
>
> Thanx in advance.
More information about the Python-list
mailing list