05-31-2009
rlogin and telnet
I want to make a script which will execute a command from a remote server like below
rlogin server1
then
telnet server2
(username, password will be given)
now execute command (it may "ls -l *.txt") and give the output
I've to do this manually but want to make it automatic
Script may be bash or perl
Please help me. I searched the forum but not get the solution.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
what is the main difference between rlogin and telnet? Or they are synonymous
cheers (13 Replies)
Discussion started by: g-e-n-o
13 Replies
2. UNIX for Dummies Questions & Answers
From any computer on our network when you rlogin into one machine (this only happens on this machine) it'll hang for about 3 minutes before loggin into that machine. If your sick of waiting you can do a <ctrl> C and then it'll rlogin into the machine it is meant to BUT it wont keep the shell... (1 Reply)
Discussion started by: merlin
1 Replies
3. UNIX for Dummies Questions & Answers
Hello Friends,
I had an IRIX box won't let me login with any IDs (even root) Telnet, Rlogin, SSh. However, I can login by single user with root ID.
Telnet login >>> Connection closed by forgeign host.
Rlogin >>> Connection closed
SSh login >>> connection to address ???.????.???.??? ... (1 Reply)
Discussion started by: anphdula
1 Replies
4. Shell Programming and Scripting
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
5. Solaris
Hi,
I have a Sun Ultra 5 desktop with Solaris 8. When I telnet/rlogin into any other host, the connection closes after few hours of inactivity.
I also have another Windows box which I use rarely. But when I telnet/rlogin into the same hosts using putty, the connection stays for days without any... (5 Replies)
Discussion started by: dr_gsb
5 Replies
6. IP Networking
Hai guys,
Both "rlogin" and "telnet" are used to login remote host.Is there any differece between these 2 commands? (or) are both same?
Thanks (1 Reply)
Discussion started by: Felicia23
1 Replies
7. Shell Programming and Scripting
I want to write a script that rlogins to a couple machines and then from the last machine, telnet into a final machine and execute a command. So in pseudocode it would look like:
rlogin host1
from host1 rlogin host2
from host2 telnet host3
from host 3 execute command
The reason for the... (6 Replies)
Discussion started by: mcburke38
6 Replies
8. Solaris
Guys, I'm running solaris 9 on two systems: 1 and 2, let's say.
From 1, if I say rlogin 2, i can just login. No passwd prompt!
From 2, if I say rlogin 1, it asks for the passwd. (able to login with a passwd)
But, they both have the same config files, same set up, same network etc.
What... (13 Replies)
Discussion started by: the_red_dove
13 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I was writing one script which includes to switch to the another telnet automatically from the present telnet server. I was using rlogin but firstly it takes the same user name of the present telnet and secondly it is prompting for the password.
But i want to switch to the another telnet... (2 Replies)
Discussion started by: Prateek
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I want to know the difference between these two services. Both are under xinetd. Both are used for enabling and disabling Telnet service. So, can somebody please explain me the difference between the two ?
Thanks in advance :) (0 Replies)
Discussion started by: kashifsd17
0 Replies
LEARN ABOUT ULTRIX
rlogin
rlogin(1c) rlogin(1c)
Name
rlogin - remote login
Syntax
rlogin rhost [-ec] [-8] [-L] [-l username]
rhost [-ec] [-8] [-L] [-l username]
Description
The command connects your terminal on the current local host system, lhost, to the remote host system, rhost.
Each host has a file which contains a list of rhosts with which it shares account names. The host names must be the standard names as
described in When you use the command to login as the same user on an equivalent host, you do not need to specify a password.
You can also have a private equivalence list in a file .rhosts in your login directory. Each line in this file should contain the rhost
name and a username separated by a space, giving additional cases where logins without passwords are permitted. If the originating user is
not equivalent to the remote user, then the remote system prompts for a login and password as in
To avoid security problems, the .rhosts file must be owned by either the remote user or root and it may not be a symbolic link.
Your remote terminal type is the same as your local terminal type, which is specified by your environment TERM variable. Except for
delays, all echoing takes place at the remote site so the rlogin is transparent. Flow control by and <CTRL/Q>, and flushing of input and
output on interrupts are handled properly. The optional argument -8 allows an eight-bit input data path at all times. Otherwise, parity
bits are stripped except when the remote site's stop and start characters are other than and <CTRL/Q>. A tilde followed by a dot (~.) on a
separate line disconnects from the remote host, where the tilde (~) is the escape character. Similarly, a tilde followed by <CTRL/Z> (~
<CTRL/Z>), where is the suspend character, suspends the rlogin session.
Substitution of the delayed-suspend character, which is normally <CTRL/Y>, for the suspend character suspends the send portion of the
rlogin, but allows output from the remote system. A different escape character may be specified by the -e option. There is no space sepa-
rating this option flag and the argument character.
Options
-8 Allows an 8-bit input data path at all times.
-ec Uses the specified character as the escape character. If not specified, uses a tilde (~).
-l username Logs you in as the specified user, not as your user login name.
-L Runs session in litout mode.
Files
/usr/hosts/* for rhost version of the command
See Also
rsh(1c)
rlogin(1c)