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
    almut,

    I did not see the NOPASSWD option in the man page for sudo but will look again...and also for Expect

    Thanks, brahan

      NOPASSWD is described in the sudoers(5) man page...