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
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