pipe confusion

From: Thomison, Lee <ThomisonL@ci.anchorage.ak.us>
Date: Mon Apr 12 2004 - 08:39:43 AKDT

Heya folks,
 

Piping and redirection are sore troublesome topics for me. They
shouldn't be, seems easy enough, but obviously not, so any help is
appreciated.

 

Keeping it simple, I have n number of hosts I want to execute a command
(or shell script, even) on. These hosts are listed in a file
~/hostlist.

 

What's wrong with

 

            rsh - ls < hostlist ! where ls is the command I want to
execute on the remote systems.

 

It looks like it has something to do with the stdin -not- feeding to
'-', like I expect it to, but I'm having trouble getting past that.

 

Thanks in advance,

 

Lee

 

 

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Apr 12 08:39:41 2004

This archive was generated by hypermail 2.1.8 : Mon Apr 12 2004 - 08:39:42 AKDT