This one time, at band camp, Rod Butcher wrote:
>I need to get my shell script to login to something and then enter a 
>password at a prompt.. i.e. unattended operation. I can't get the script 
>to feed it the password, it always prompts me.. lets say userid=xxxxxx, 
>password=yyyyyy
>
>xyz login xxxxxx
>>password :
>
>at this point I  want the shell script to feed it the password yyyyyy
>
>I've tried | , < to no avail. Read the manpages. no dice.
>pointers greatfully received

The password is being read from a tty, not stdin, so you should use
somethign like expect (if you like to whip yourself) or perhaps the Expect
modules for perl or python may be more palatable.

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to