Sponsored Content
Top Forums Shell Programming and Scripting script for nested rlogin and telnet Post 302172660 by mcburke38 on Tuesday 4th of March 2008 11:44:44 AM
Old 03-04-2008
Thanks for the help, but it did not work. I'm trying to get this working piece by piece and am just focusing on rloging into host1 and then from host1 rloging into host2 and cannot get this to work. I've tried:

rlogin host1 (rlogin host2)

rlogin host1 'rlogin host2'

rlogin host1 "rlogin host2"

And it keeps complaining about the rlogin syntax. Any other ideas out there?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rlogin & telnet

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

telnet, rlogin, ssh login probblem

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

3. Shell Programming and Scripting

rlogin from Shell script

I am logged into an AIX Unix box. From there I want to remotely login to remotely login to an HP-UX Unix box and want to execute a command that will create a file. I want to get the file to the AIX box. Can someon eplease advise how to automate that in a shell script? At the first step I want to... (2 Replies)
Discussion started by: asutoshch
2 Replies

4. Shell Programming and Scripting

rlogin inside a c-shell script

Hi Forumers, Sorry if it's really simple, but I couldn't find a way out. :( I've to do something like this in a script (csh): <some commands, variable settings, scripts> rlogin different_server <some commands, variable settings, scripts> After "rlogin", it shows the prompt of the... (5 Replies)
Discussion started by: sumitgarg
5 Replies

5. Solaris

rlogin, telnet connections timeout

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

rlogin,telnet-different or same?

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

Nested Case in UNIX script

Hi I wanted to know if we can write a nested case in UNIX script. Something like following - Case ${sDB} in Srvr1) case ${sSchema} Sch1) DBusr=Username1 DBPwd=Pwd1 ;; Sch2) DBusr=Username2 ... (1 Reply)
Discussion started by: sumeet
1 Replies

8. Shell Programming and Scripting

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... (4 Replies)
Discussion started by: shoeb
4 Replies

9. Shell Programming and Scripting

rlogin and script

I am writing a script to do rlogin to another system and execute commands on the remote system, i can successfully login to the remote system but the commands are not sent. i can only use rlogin to get to the remote system. what can i do? (6 Replies)
Discussion started by: aydj
6 Replies

10. Shell Programming and Scripting

Script to eliminate files .rlogin

Hi guys, I'm try making to script for eliminate files rlogins. path1='/home/*' for i in `cat /etc/passwd |awk -F: '{print $6}'`; do if test "$i" = "$path1"; then echo $i cd $i if ; then echo "$i/.rhosts detectado"|mail -s "rhosts" root ... (14 Replies)
Discussion started by: nena_redbalon
14 Replies
cconsole(1M)						  System Administration Commands					      cconsole(1M)

NAME
cconsole , crlogin, cssh, ctelnet - multi window, multi machine, remote console, login, ssh, and telnet commands SYNOPSIS
$CLUSTER_HOME/bin/cconsole [-s] [ -l username] [clustername... | nodename...] $CLUSTER_HOME/bin/crlogin [-l username] [clustername... | nodename...] $CLUSTER_HOME/bin/cssh [-l username] [-p ssh-port] [clustername... | nodename...] $CLUSTER_HOME/bin/ctelnet [clustername... | nodename...] DESCRIPTION
These utilities initiate a multiple window connection to a set of specified hosts. There are three variations: one that is specifically intended for remote console access while the others provide remote logins using rlogin, ssh, or telnet. Each utility starts a host window for each of the specified hosts, as well as a common window. Input directed into the common window is sent to each of these host windows. This tool is useful for system administration tasks that require similar things to be done on each of several hosts. For tasks that are identical on all hosts, typing in the common window sends the characters to all of the hosts. However, the host windows are normal terminal windows so they can also be used one at a time (by moving the mouse into one of them and typing directly into it) to perform host specific tasks. The common window also allows the user to select which hosts receive the characters typed in the common window, so only the specified hosts will receive input. These utilities use entries in two different databases, /etc/clusters and /etc/serialports. cconsole The cconsole command provides remote console access through the telnet command. All normal telnet escape characters are available to the user. See the telnet(1) man page for a complete listing of telnet escape characters. Because there are a few telnet escapes that are com- monly used, they are provided here as well. The escape character is Control-], specified below as ^]. ^] quit Quit the session. Analogous to ~. in tip and rlogin. ^] send brk Send a break signal to the remote system. This is what is needed to halt the Sun CPU. The normal key board sequence is "L1-A." crlogin The crlogin utility provides remote login through the rlogin command to multiple cluster nodes. cssh The cssh utility establishes Secure Shell connections directly to the cluster nodes through the ssh command. ctelnet The ctelnet utility is similar to cconsole except that the connection is directly over the Internet. OPTIONS
The following options are supported: -l username Specifies the user name for the ssh connection. This option is passed to the cconsole, crlogin, or cssh utility when the utility is launched from the CCP. The ctelnet utility ignores this option. If the -l option is not specified, the user name that launched the CCP is effective. -p ssh-port Specifies the Secure Shell port number to use. This option is passed to the cssh utility when the utility is launched from the CCP. The cconsole, crlogin, and ctelnet utilities ignore this option, If the -p option is not specified, the default port number 22 is used for secure connections. -s Specifies using Secure Shell connections to node consoles instead of telnet connections. This option is passed to the cconsole utility when the utility is launched from the CCP. The crlogin, cssh, and ctelnet utilities ignore this option. If the -s option is not specified, the cconsole utility uses telnet connections to the consoles. To override the -s option, deselect the Use SSH checkbox in the Options menu of the cconsole graphical user interface (GUI). ENVIRONMENT VARIABLES
The following environment variables affect the execution of these utilities: CLUSTER_HOME Location of Sun Cluster System tools. Defaults to /opt/SUNWcluster. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWccon | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
rlogin(1), ssh(1), telnet(1), tip(1), ccp(1M), chosts(1M), cports(1M), clusters(4), serialports(4), attributes(5) NOTES
The standard set of X Window System command line arguments are accepted. Sun Cluster 3.2 8 Sep 2007 cconsole(1M)
All times are GMT -4. The time now is 07:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy