in reply to Re^3: Automating sudo actions
in thread Automating sudo actions
It's not quite as asinine as it sounds--it's just the limitations I find myself working under, and it's simply not possible for me to change the environment. Actually I suppose it is a bit asinine, but I'm still intensely curious if it's possible without Expect.
It's come up in other situations as well, such as automating tasks via Net::OpenSSH needing privilege escalation--or sudo with a password over the connection, where I need to issue a series of commands where the output of one command will determine some of the syntax of the next one. So I can't very easily just chain them up with &&'s.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Automating sudo actions
by tilly (Archbishop) on Jan 25, 2011 at 16:04 UTC | |
Re^5: Automating sudo actions
by JavaFan (Canon) on Jan 25, 2011 at 09:30 UTC | |
Re^5: Automating sudo actions
by cjb (Friar) on Jan 25, 2011 at 09:27 UTC | |
by MidLifeXis (Monsignor) on Jan 25, 2011 at 14:07 UTC | |
by cjb (Friar) on Jan 26, 2011 at 09:18 UTC |