in reply to How to enter password through a file when it prompts on STDOUT.

hey.. I too had experienced this kinda prob some time back... I dont exactly remember the syntax, but you can try adding the username and password of your windows machine into your linux machine, so that it never again asks for the pwd.

Here is the procedure(google it if not correct)

Login into RHEL machine as root, type the following commands:

useradd -a <username of windows>

<you would be prompter for the windows machine password>

<enter the pwd again>

Now run your script. Thats it... probably this might solve your prob.
  • Comment on Re: How to enter password through a file when it prompts on STDOUT.

Replies are listed 'Best First'.
Re^2: How to enter password through a file when it prompts on STDOUT.
by sagarkha (Acolyte) on Aug 26, 2010 at 07:51 UTC
    Its working for me now, thnx.