Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass information from script to a Program 1

Status
Not open for further replies.

ocon

Technical User
Jul 13, 2007
1
0
0
US
Hi everybody,

I am new to scripting, and I have a question here. I need to know if its possible to send strings from the script to another program, like if it were a Macro, for example, for rlogin, if its a way to do a script that loads:

rlogin host.com -luser

than wait for "password:" and transmit my password.

rlogin was an example, I know there are ways to connect without typing passwords, but the issue is that I have to monitor some applications ussing some passwords that requiere my to type in the database name, for example:

audit (enter)
Welcome to Audit, please select your database:
AL--ALABAMA
IL--Illinois
YOUR DATABASE IS:? __ Here I type IL (enter)

then othere questions pop up.

Is it possible, you I will have to stick to the old fashion and type it allways?.

Thank you again,
Carlos Ocon.
 
You may consider expect

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top