Scipt to do login


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Scipt to do login
# 1  
Old 10-05-2004
Scipt to do login

I want a script which will run in the background.
$ sh s.sh&
[1] 523

Then this script should provide input to the Login command.
$ login
login:

i.e instead of the user typing in the username and password, the script running in the background should provide the username and password assuming that the script is reading the username and password from a data file.

Can any1 tell me what this script should conatin????????
# 2  
Old 10-05-2004
Rahul,
Not sure if you can do the following, but it should serve the purpose.

On the machine where u want to login with id userid, create a .rhosts file with a entry as follows

machinefromwheretologin userid password

then in ur script put
rlogin machinewheretologin -l userid

this will log the userid in the machinewheretologin.

If I sound confusing, see man rlogin for more help Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How many times did the scipt ran?

Hi, Can we able to identify how many times any script was ran per day/week/month/year wise (2 Replies)
Discussion started by: penqueen
2 Replies

2. Shell Programming and Scripting

Help with scipt to compare first level dir with its subdirectory

I was wondering if someone could help me or atleast push me in the right direction. All my users have a folder with their username (i.e. john.doe ) some of these folders contain a subdirectory with the first letter of there first name and there lastname (i.e. jdoe ) I'm trying to create a... (1 Reply)
Discussion started by: binary-ninja
1 Replies

3. UNIX for Advanced & Expert Users

sysbase scipt error

Hi All, when is run this manually it work's i am UNable to get the proper .sql so that i can use this in my input file. I need to do this way only bcz of requirment. Sample script isql -Sxxx -Usa -Pyyyy -D master -o "abc_script.sql" << EOF echo USE master >> "abc_script.sql"... (1 Reply)
Discussion started by: oracle_coorgi
1 Replies

4. Shell Programming and Scripting

help writing a scipt to search for errors.

Hi, I am a beginner unix user. I would appreciate any help you guys can provide me with. What I am looking to do is the following. I have a log file that gets generated every morning. Example: /home/me/folder/temp.log temp.log will say "Socket connected" if the connection was successful,... (4 Replies)
Discussion started by: Jeffenri
4 Replies

5. Shell Programming and Scripting

Perl script, how can I use this scipt in different folders

Hello, I am a new programmer and currently having some difficulties writing a script. Your help will be very appreciated. In general, I have the below script running in one folder and and can get results from "OUPUT" file in the same folder. My question is I have several hundreds folder which all... (1 Reply)
Discussion started by: luhaiming
1 Replies

6. UNIX for Dummies Questions & Answers

UNIX/MS-DOs scipt

Is any one who know a good tutorial for Unix bash script and Ms-Dos scipt?? if yes, if is possible to upload it or give me the link??? What is the difference betwwen uvix and ms-dos script?? (1 Reply)
Discussion started by: Tom2
1 Replies

7. UNIX for Dummies Questions & Answers

scipt dividing strings /reg expr

Hello! I've got txt-file containing lots of data in sentences like this: ;;BA;00:00:03:00;COM;CLOQUET-LAFOLLYE;SIMON; but sometime more than on in a line like this: ;;BA;00:00:03:00;COM;CLOQUET-LAFOLLYE;SIMON;;;BA;00:00:03:00;REA;RTL9;;;;BAC;:00;TIT;SEMAINE SPECIALE ~SSLOGAN~T DVD;; ... (3 Replies)
Discussion started by: maco_home
3 Replies

8. UNIX for Dummies Questions & Answers

Finding out process id in a scipt

Hi, If in a shell script i write a command ls > bla & ls The output is redirected to bla and the next ls starts as first one is going on in background. I want to find the PID of the first command. Thanks in advance (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies

9. Shell Programming and Scripting

i need a scipt to email users with idle processes!?

hello, i am VERY new to this whole script world. I need to come up with a script that will email a user if they have an idle process past 500 minutes...any suggestions??? Thanks so much. (0 Replies)
Discussion started by: sheppy28
0 Replies

10. Shell Programming and Scripting

SED scipt help - line extraction

Forgive me if this is a dumb question...I'm a Windows sys admin with little programming knowledge. I have files containing anywhere from 3 to 200 lines. Using SED, I want to extract only lines containing a specific instance of "ISS." It is possible that "ISS" will occur several times in a... (10 Replies)
Discussion started by: thuston22
10 Replies
Login or Register to Ask a Question