in reply to Perl scripts that provide login information to applications
What exactly were the problems with using sudo? Did you set the "NOPASSWD:" option for the command in question? (Hint: in fact, using sudo would be the preferred solution.)
As soon as you need to enter credentials, you'll need to use something like Expect, which does fake a terminal, which in turn allows your script to interact with the program on the other side...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl scripts that provide login information to applications
by brahan (Initiate) on Feb 05, 2009 at 21:04 UTC | |
by almut (Canon) on Feb 05, 2009 at 21:13 UTC |