Search : in
By :

Command Output to Standard Input

Last answer on Jun 3, 2009 2:34:14 pm BST sushant172, on Jun 3, 2009 12:29:52 pm BST 
 Report this message to moderators

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.

Best answers for « Command Output to Standard Input » in :
Linux - The shell Show Introduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...
Serial port and parellel port Show Introduction to input-output ports Input-output ports are material elements on the computer, allowing the system to communicate with exterior elements, in other words to exchange data, hence the name input-output interface (sometimes known as I/O...
MySQL console: Redirect standard output ShowMySQL console: Redirect standard output MySQL client command must be common to you (mysql), with this small tip you should be able to redirect the output commands to any program? To do this, simply use the pager command, followed by...
MySQL console: output files rather than a list ShowMySQL console: output files rather than a list MySQL console: output files rather than a list The MySQL client command line is really powerful ... You may have already been confronted with the difficulty of reading results that...
ImageMagick - Manipulate images with command lines ShowImageMagick - Manipulate images with command lines ImageMagick is a powerful command line tool that allows you to manipulate images. The advantage of this tool is that it allows: Automate work on images (this avoids...
Download ListMotor ShowLisMotor is a tool very powerful and easy-to-use tool to manage E-mail list. LisMotor operates with input and output data input and exits stored in simple text or CSV files for quick and fast clear results. The number of data that the software...
Ping ShowThe Ping tool "Ping" (short for Packet INternet Groper) is without a doubt the best-known network administration tool. It is one of the simplest tools, because all it does is send packets to check if a remote machine is responding and, by...
Sound card ShowIntroduction to sound cards The sound card (also called an audio card) is the part of a computer which manages its audio input and ouput. It is usually a controller which can be inserted into an ISA slot (or PCI for more recent ones), but...
UNIX system - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence its name "shell". The shell therefore acts as an intermediary between the operating system and the user using command lines...

1

 babol93, on Jun 3, 2009 2:34:14 pm BST

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

Reply to babol93