Results 1 to 1 of 1
Hi friends,
I'm writing a shell script to connect to a remote embedded system and do a few operations thru the Linux system on the embedded system. I didn't know ...
- 11-08-2007 #1Just Joined!
- Join Date
- Nov 2007
- Posts
- 1
help with remote input commands thru rsh
Hi friends,
I'm writing a shell script to connect to a remote embedded system and do a few operations thru the Linux system on the embedded system. I didn't know how to send commands in my shell script to the remote system because these commands are considered commands for my host Linux.
I looked it up and found that rsh should remote-mount the remote system onto my Linux host as a remote shell and my commands can be sent over directly. However, when I tried, I got:
rsh 192.168.247.178 -l root
rsh: remote terminal session not supported
The remote system recognises the rsh command. I looked it up again and added my host's ip address to hosts.allowed but it didn't work.
Another question about rsh is: do I have to append "rsh 192.168.247.178 -l root" to every command or I just need it once? I don't know if rsh telnets the remote machine every time when it sends over a command or it telnets the remote machine once and sends over all the commands following.
Does anyone know the answers?
Thanks,
Sam


Reply With Quote