Thanks,
I still can't get a carriage return after the "VCS Login:" It runs the userid and password together and I need to send the userid, then CR, then th password at the password prompt, and enter. Then after the status has been shown, I need to ctrl-c. Unfortunately, I can't get the CR (^M) or the Ctrl-C (^C) to work.
Am I missing something?
This is what I have:
#!/bin/ksh
VAR=userid
VAR1=passwordval
/opt/VRTSvcs/bin/hastatus <<!
print $VAR^M
print $VAR1^M
sleep 15
^C
!>>
So, I'm trying to run the hastatus command, pass it the userid, CR, pass it the password, hit return, then ctrl-c out. When I run it I get this:
attempting to connect....
VCS Login:Password: