Hi Steve, The file contains the command currently, I've tried "rsh -l<login-name> <router-ip> < filename" but just get a timeout error. I know the connection work ok as a "rsh -l<login-name> <router-ip> sh ver" works.. Will I get a timeout of there is a problem with the commands?
Simon
"It's hard to be fit as a fiddle when you're shaped like a cello"
-----Original Message----- From: main-admin@lists.alug.org.uk [mailto:main-admin@lists.alug.org.uk]On Behalf Of Steve Fosdick Sent: 15 December 2001 17:56 To: MJ Ray Cc: Simon; ALUG Subject: Re: [Alug] redirecting into a command...
On Fri, 14 Dec 2001 12:11:24 MJ Ray wrote:
Simon:
rsh -l<login-name> <router-ip> sh ver
"rsh -l login ip" on its own should get you a login shell. rcp is the usual way to copy files across, but "cat srcfile | rsh -l login ip 'sh cat
destfile'" should work if you have to. Hope that helps.
-- MJR
Simon, was this what you were asking or are the contents of the file you talk of actually commands that the router should execute rather than data to be stored on the router?
If the file contains commands for the router to execute then all you need is:
rsh -l<login-name> <router-ip> < filename
Steve.
main@lists.alug.org.uk http://www.anglian.lug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!