What about an expect script that takes your password as a parameter? On Fri, Feb 27, 2015 at 5:12 AM, Paul Boniol <[email protected]> wrote:
> I need to run a provided program from the command line. > It starts an X program. > It then prompts for a password from the command line. > > I'd like to continue on at the command line after entering the password > (rather than having to open another bash session) while the program > continues to run. > > You can't just append ' &' because it asks for a password as input. So it > hangs the process, waiting for input. > > Call me nuts, but I don't like saving an important password in a local > file, so I'm pretty sure redirecting STDIN is out. > > Is there any way to enter the password and then tell it to fork, from the > command line? (I don't think there is, but it would be really nice.) > > Paul > > -- > -- > You received this message because you are subscribed to the Google Groups > "NLUG" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nlug-talk?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "NLUG" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en --- You received this message because you are subscribed to the Google Groups "NLUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
