Home » Infrastructure » Unix » How to log into unix box through telnet from a batch file
How to log into unix box through telnet from a batch file [message #212185] Thu, 04 January 2007 04:01 Go to next message
kanis
Messages: 61
Registered: November 2006
Member
I need a batch file which will run from win xp ,which will connect to unix box through telnet by giving user id and password and will take database back up automatically.

Can any body give a sol.
Re: How to log into unix box through telnet from a batch file [message #212268 is a reply to message #212185] Thu, 04 January 2007 07:54 Go to previous message
ThomasG
Messages: 3211
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
Remote Shell should work, if that service is enabled on the unix box.

Try

rsh unix_hostname -l unix_username 'ls ~'


on the windows box.

To allow the rsh login for unix_username the IP or hostname of the windows box must be in a ~/.rhosts file in the unix users home directory.
Previous Topic: problems to execute an oracle stored procedure from Unix's shell
Next Topic: My crontab got error
Goto Forum:
  


Current Time: Mon Apr 15 23:41:33 CDT 2024