![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rlogin | shanmugam | UNIX for Dummies Questions & Answers | 1 | 01-25-2007 06:39 AM |
| rlogin | seaten | Shell Programming and Scripting | 3 | 05-13-2005 02:01 AM |
| rlogin | seaten | UNIX for Dummies Questions & Answers | 2 | 05-12-2005 05:42 AM |
| Rlogin??? | merlin | UNIX for Dummies Questions & Answers | 1 | 01-14-2003 05:42 AM |
| rsh & rlogin | Inbal | UNIX for Dummies Questions & Answers | 2 | 04-24-2002 11:02 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
rlogin
Hi all,
i need to remotely execute a couple of commands on anyother server, but rsh is not allowed. for that matter i am bound to use rlogin. so what i am trying to do in the script is : 1) rlogin asad 2) Wait for Login prompt 3) Waiting for Password Prompt 4) Once authenticated, execute the couple of commands and exit i am stuck in the (2) and (3) point. how can i make a script wait for a username login prompt and then give it value from the script and then the password prompt and supply the way from the script. Pl help me out in this. thanks |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
If rsh is not allowed, why do you think rlogin is any better?
Can't you use ssh instead? |
|
#3
|
|||
|
|||
|
hi ... well i will use ssh but it ask for password on prompt and i have to include that in the script. so can u guide me with that.
|
|
#4
|
|||
|
|||
|
There are various ways to avoid passwords in ssh. The secure and reasonably simple way is to run public-key authentication with a key which is known by your ssh-agent; a weaker but even simpler solution is to have a key which doesn't require a password, but I'd recommend against that.
|
|
#5
|
|||
|
|||
|
You can use expect script for that matter
expect script + ssh is better option rather then pre auth. |
|||
| Google The UNIX and Linux Forums |