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...
In reply to Re: Perl scripts that provide login information to applications
by almut
in thread Perl scripts that provide login information to applications
by brahan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |