Shell Script on vb6

Closed
MeidyCicilia
Posts
1
Registration date
Friday July 24, 2015
Status
Member
Last seen
July 24, 2015
- Jul 24, 2015 at 08:59 PM
Hello,

can i run the shell script automatic telnet on vb6 to make GUI Interface?

This script :
#!/usr/local/bin/expect
spawn telnet <machine ip>
expect "login:"
send "<username>\n"
expect "Password:"
send "<password>\n"
send "bash\n"
send "cd /opt\n"
send "ls -ltr\n" ? (if you are not giving \n then it will wait for your response or you have to type enter manually).
interact

thanks