piping a script running on a remote host with rsh
Hi all,
I've a script that requires that it is run on a specific host but i would like to run it from within a larger script run on any machine and im looking at piping through with rsh.
I have been able to do this with tar
e.g.
tar cvf - $files | rsh $remoteserver dd of=/dev/$device
but i am unable to do similar to a script. as it comes back with rlogin connection closed.
/usr/bin/script -option option2 | rsh $remoteserver
is there unique coding to pass multiple options through rsh? I'm using bash.
Thanks,
|