Command Output to Standard Input

Closed
sushant172 Posts 1 Registration date Tuesday June 2, 2009 Status Member Last seen June 3, 2009 - Jun 3, 2009 at 07:29 AM
babol93 Posts 7 Registration date Friday April 3, 2009 Status Member Last seen June 15, 2009 - Jun 3, 2009 at 09:34 AM
Hello,

How do I provide the output of a command to another command which is waiting for an input from the user ?

Ex : I need to login to a device via telnet. In the script, initially I use the "read" command to get the IP Address, Username and Password of the device from the user. Now, after issuing the telnet command in the script, I want to provide the username output read initially.

How would I do that ? Anyone help me out please with simple commands.

Thank You.

1 reply

babol93 Posts 7 Registration date Friday April 3, 2009 Status Member Last seen June 15, 2009
Jun 3, 2009 at 09:34 AM
I am sorry but we do not help people in hacking!
0