Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aargh! automated Rlogin

Status
Not open for further replies.

Igaduma

Technical User
Nov 23, 2001
322
BE
Hi all,

Is it possible to write a script that does an automated rlogin to a remote host and executes a few commands ?
The reason:
We need to run a command every minute on a remote solaris machine but the admin of that remote machine has disabled all cron activity.
I thought it would be cunning to run the crontab on our machine, let it do a rlogin to the remote machine and come back.
But, with ftp you can specify the login/password but I've got no idea how to do this in a script with rlogin.
Can you pass the password on ?

Thanks for any help,
Iga
 
Try rsh if it is enabled - put your local hostname in the .rhosts file in your users home directory on the remote machine. Then in your cron call..

rsh [ -l remote_user ] remote_host command

To pre-empt the security buffs replies, yes this is an insecure way of doing it. You are better off installing OpenSSH or nsh which allow this sort of thing over secure encrypted data paths.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top