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

SCRIPT HELP - WHY DOES MY SCRIPT STOP AT ONE POINT??? 1

Status
Not open for further replies.

jdrake

Technical User
Aug 6, 2001
12
US
My ASPECT script that I had the RECORDER build for me in Procomm Plus stops at the first prompt "ENTER YOUR FULL NAME" once the name is typed in and I press ENTER everything else inculding the transfer completes automatically. (I have installed this on 5 PC's and on 1 I dont have this problem??????) I am very new to procomm and programming in general so any help would be great
 
I would bet that the one that you have no problem on is using the login ID that you recorded the script with.

Look in the source code for your recorded script to see if it is expecting any user specific information (instead of host specific). You can also clean up your "waitfor" triggers so that it is easier to see what step each line in the script is referring to. If you do so, make sure that the waitfor trigger string is an exact match to what the system sends out.

Robert Harris
Communications Advantage
 
Thanks Robert,
I have looked very closely at the script in relation to the login portion and it looks good. Here is the interesting part: I copied the script to a disk and loaded Procomm PLus (ver 8.4) to 4 pc's copying the script from disk to the ASPECT dir. So everybody has the same exact script but it only functions properly for 1 user. As soon as you start the script it dials then stops at the "Enter Your Full Name" option. One the name is typed in it works fine. I am going to try to copy the script below, I dont know if this site will allow the formatting to stay in place.


;Recorded script. Editing may be required.
proc main
transmit "ATE1V1Q0^M"
waitfor "K^M^J"
transmit "atdt5555570^M"
waitfor "Enter your FULL Name: "
transmit "TESTFILE^M"
waitfor "Is this correct (Y/N)? "
transmit "y"
waitfor "Password: "
transmit "56545^M"
waitfor "Your Choice? "
transmit "d"
waitfor "Your choice? "
transmit "z"
waitfor "File name? "
transmit "TESTFILE.XLS^M"
waitfor "Your Choice? "
transmit "g"
endproc

I started recording at the atdt portion and ended after the g "goodbye" ended my session. I have found very little in any help or manuals so far about this. I tried the logonwiz as an alternative but there is something that my recieving system does not like and it keeps hanging up as soon as I am connected.

I have also tried a new CD I got my hands on of ver 3 of Procomm and though it lets me bypass the "ENTER COMMAND MODE" option that 8.4 doesnt seem to let me default to, it still halts and waits at the "Enter Your Full.... "


If you read this and have any furthur insite then THANKS!!!
Otherwise, any help anybody can give me would be greatly appreciated.
 
The Waitfor command by default will wait 20 seconds for the prompt, then continue to the next step. Could it be that this time period is passing before the failing machines are connected? Here are two things you can try:

Try making the waitfor time 60 seconds with the following code:

Code:
   waitfor "Enter your FULL Name: " 60

Or try temporarily putting the error check illustrated below in your script on one of the failing machines to see if Procomm is reading the prompt at the right time:

Code:
   transmit "ATE1V1Q0^M"
   waitfor "K^M^J"
   transmit "atdt5555570^M"
   waitfor "Enter your FULL Name: "
   If failure
     Usermsg "Did not read prompt."
   Else 
     Usermsg "Read prompt"
   Endif
   transmit "TESTFILE^M"
   waitfor "Is this correct (Y/N)? "
   transmit "y"
Robert Harris
Communications Advantage
 
I played with this and all is good now. it seems that Procomm just needed a little prodding. Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top