scripting rlogin

scripting rlogin

Post by stephe » Thu, 09 Sep 1999 04:00:00



I an writing a script that will rlogin to another server, but how can i then
execute more commands from the original script.
the way it is just now, once I have rlogedin I have to manually start
another script.
when I close that session, control passes back to the original script.

Ideas appreciated.

thanks

 
 
 

scripting rlogin

Post by Barry Margoli » Thu, 09 Sep 1999 04:00:00




>I an writing a script that will rlogin to another server, but how can i then
>execute more commands from the original script.
>the way it is just now, once I have rlogedin I have to manually start
>another script.
>when I close that session, control passes back to the original script.

Use Expect.

--

GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

scripting rlogin

Post by Frank da Cr » Thu, 09 Sep 1999 04:00:00





: >I an writing a script that will rlogin to another server, but how can i then
: >execute more commands from the original script.
: >the way it is just now, once I have rlogedin I have to manually start
: >another script.
: >when I close that session, control passes back to the original script.
:
: Use Expect.
:
Or use C-Kermit as your rlogin client:

  http://www.columbia.edu/kermit/ck70.html

or to script the external rlogin command.

- Frank

 
 
 

scripting rlogin

Post by Andreas Schwa » Sat, 11 Sep 1999 04:00:00


|> I an writing a script that will rlogin to another server, but how can i then
|> execute more commands from the original script.

Use rsh instead.

--
Andreas Schwab                                  "And now for something

SuSE GmbH, Schanz?ckerstr. 10, D-90443 Nrnberg

 
 
 

scripting rlogin

Post by c.. » Sat, 11 Sep 1999 04:00:00


|>
|> |> I an writing a script that will rlogin to another server, but how can i then
|> |> execute more commands from the original script.
|>
|> Use rsh instead.

Or use "expect" to script the interactive dialog of the rlogin (or telnet)
session.

--
Conrad Kimball            | Single Glass System Architect

(425) 865-6410            | P.O. Box 24346, MS 7M-HC
(206) 797-3112 (pager)    | Seattle, WA  98124-0346

 
 
 

1. How to make a csh script rlogin to another computer


|> I am not certain this is the appropriate group for this question; I have to
|> write a csh script which will log into a VMS system & start a program
|> running. The only way I can get in is to use a Here document in the
|> script to feed the loginid, password, and command then logout. A problem
|> arises when trying to pass the password. When attempting to run the
|> script it logs in then returns the message "login timed out". I suspect
|> it is not taking the password. Any suggestions?

Password fields on UNIX and VAX are not mapped to stdin or stderr ( Standard Input,
Standard Error). Therefore, you can never send a password to a machine via a shell script.
The only alternative would be to use the VAX equivalent of a .rhosts file (to bypass
the password field of the login procudure )...if such a creature exists.

Regards,

Edwin C. Brown

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Edwin C. Brown             $                             $                    
Project Engineer           $ Voice     (513) 576-5935    $ (c) Copyright 1995
SDRC Engineering Services  $ FAX       (513) 576-2402    $         by

Milford, Ohio 45150-2789   $                             $                      
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

2. Virtual IP interfaces

3. rlogin - To make rlogin work, I have to vi .rhosts ?

4. Wanted: Apache binary for HP-UX

5. HEEEELLLP: startup scripts are not run, when rlogin'ing to machine (SuSE 7.2)

6. SiS963, Asus P4S8X and onBoard LAN

7. rlogin login script to lauch app

8. Midi files playing.. but WRONG

9. script for rlogin or telnet

10. using shell script to rlogin

11. c/script code for tracing back rlogins?

12. rlogin script

13. rlogin login script