The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-26-2008
IMTheNachoMan IMTheNachoMan is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 11
ksh: cmd output to input of another script

I want to write a script in KSH that takes the output of one command and redisplays it. Something like:

Code:
while true
do
	read inpt
	date +"%I:%M:%S %p <-> $inpt"
done
and then some how get the output of the ping command to redirect to the input of this script.

does that make sense?