Help needed with resh/rsh remote command

Help needed with resh/rsh remote command

Post by Scot » Mon, 02 Jul 2001 16:16:51



                                       Can someone help...?

                                       I am a relative newcomer to Unix
and need some help with the above.

                                       I have inherited from my job
predecessor a backup script which backs
                                       up files from its 'home' server
onto a robotic tape library and then
                                       makes a remote connection to
another server and does a remote backup
                                       of certain selected files. Last
week the remote machine went down and
                                       having got it back up and running
again, the backup script no longer
                                       performs the remote connection.
All I get are the following error
                                       messages:

                                       TCP: t_rrcmd: Error setting up
stderr: event received on stout.
                                       TCP: t_rrcmd: The remote host may
have closed the connection.
                                       TCP: t_rrcmd: Network error.

                                       and...

                                       Not on system console.
                                       Connection closed.

                                       I have studied man pages and
TCP/IP manuals and have tried to amend
                                       the .rhosts file with little
success. I can now resh into the remote
                                       machine using my own login but if
I try to resh using root I still get a
                                       password prompt, which is no good
because the backup script need to
                                       run automatically.

                                       Any help will be GREATLY
appreciated!!

                                       ps. Sorry if I am missing
something obvious

                                       Thanks
                                       Cameron

 
 
 

Help needed with resh/rsh remote command

Post by Nick Bachman » Tue, 03 Jul 2001 02:46:22


        Are the daemons for rsh and rlogin running on the server you're trying to
connect to (i.e rshd and rlogind)?
        Also, unless you trust every user and system on the network, you might
want to switch to ssh. See openssh.org

--
                Regards,
                N
-----------------------------------
Nicholas Bachmann

"To Boldly Go Where Angels Fear To Tread"
        -From the Infocom Game "Stationfall"
----------------------------------

 
 
 

1. HELP: rsh to return $? of remote command

Hi,

I'm trying to get rsh to give me back the exit status of the actual
remote command, not the exit status of rsh, so that I can check
the status of a remote backup drive from a shell script.... so
I tried this:

exit=`rsh remotehost "mt -f /dev/rst0 status ; echo $?"`

Then I thought I could just get the last line of $exit and I'd
be sorted.... however.. it always seems to be '0'.  If I
actually log into the remote host and do a "mt -f status; echo $?",
I get a '1' when the drive is offline.

Could some kind soul tell me what is happening!  Thanks.
Oh.. btw, the remote machine is using sh exclusively.

Much obliged

Jonathan

2. Netcard FA310TX (Netgear)

3. Need help wth rsh command!

4. 2.4.21 reiserfs oops

5. How to get the exit status of a remote command executed via rsh

6. Unix FTP Project Question!

7. termified rsh: composite remote command error...

8. Ensoniq Soundscape with Linux?

9. exit code of the remote command execution (done via rsh)

10. rsh problems - cannot run remote commands

11. how to force rsh to exit with status of remote command

12. rsh: can't run any remote command

13. RSH alternative for remote command execution?