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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating Telnet in a batch file

Status
Not open for further replies.

rmunson

IS-IT--Management
Mar 7, 2003
6
US
I want to create a DCL batch file on VMS to Telnet to a site, log onto the site, send a command, and log off. I can get the file to telnet to the site, but it does not log on. Instead it interactively asks for the username. The code is below.

Could you tell me what I'm doing wrong?

$ ASSIGN/USER SYS$COMMAND SYS$INPUT
$ SET HOST/TELNET ipaddress
username
password
attrib -a posfile.txt
exit
$ exit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top