Subject: Re: Pipe and command execution.

From: [email-masked] (Hans-Albert Schneider)
Date: Wed, 6 Apr 94 19:38:09 +0200

David W. Tamkin replied to James Dryfoos:

> Both will still attempt to feed text to rsh.  If you want to prevent that
> from happening altogether, maybe one of these will help:
> 
> garbage = `rsh deneb /usr/local/audio/play \
> 	   /usr/local/audio/MeepMeep.au < /dev/null`
> 
> or
> 
> :0 hci
> | rsh deneb /usr/local/audio/play /usr/local/audio/MeepMeep.au < /dev/null

The remote shell (rsh, remsh) commands I know accept an option -n
for no input (I don't know about rcmd), so you can save the input
redirection by writing:

:0 hci
| rsh deneb -n /usr/local/audio/play /usr/local/audio/MeepMeep.au

You should consult the man page on where to place that option --
some like it after the hostname, some don't mind whether it is
before or after the hostname. Maybe there are other variants as
well.

Hans-Albert
--
Hans-Albert Schneider		<[email-masked]>
Siemens AG				phone:	(+49) 89 636 45445
Corporate Research and Development	fax:	(+49) 89 636 42284
Munich, Germany