Hi all,
I am experiencing a problem in handling a procomm aspect script. Basically the script logon to a remote location and downloads a file. In a month's time, the password expires and I have to keep that in a loop.
Eg.
1.waitfor "Username: "
2.transmit "uuuuuuu"
3.waitfor "Password: "
4. transmit "ppppppppp"
5.waitfor "New Password: " }
6.transmit "Nppppppppp" }
7.waitfor " Press any key to continue"
In the above script, either system prompts for either line (5,6,7) or (7). I thought of capturing the waitfor into a local variable and evaluate it
(eg. $localvariable = waitfor
if $localvairable = "New Password"
.......
endif
-------
Working on aspect is completely new to me. So, could anyone throw some limelight on this. Thanks. Sony.
I am experiencing a problem in handling a procomm aspect script. Basically the script logon to a remote location and downloads a file. In a month's time, the password expires and I have to keep that in a loop.
Eg.
1.waitfor "Username: "
2.transmit "uuuuuuu"
3.waitfor "Password: "
4. transmit "ppppppppp"
5.waitfor "New Password: " }
6.transmit "Nppppppppp" }
7.waitfor " Press any key to continue"
In the above script, either system prompts for either line (5,6,7) or (7). I thought of capturing the waitfor into a local variable and evaluate it
(eg. $localvariable = waitfor
if $localvairable = "New Password"
.......
endif
-------
Working on aspect is completely new to me. So, could anyone throw some limelight on this. Thanks. Sony.