Command Output to Standard Input

[Closed]
Report
Posts
1
Registration date
Tuesday June 2, 2009
Status
Member
Last seen
June 3, 2009
-
Posts
7
Registration date
Friday April 3, 2009
Status
Member
Last seen
June 15, 2009
-
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

Posts
7
Registration date
Friday April 3, 2009
Status
Member
Last seen
June 15, 2009

I am sorry but we do not help people in hacking!