MyFlight
Technical User
- Feb 4, 2002
- 193
I log into a ROLM PhoneMial System and Run a Script to change Passwords for various Mailboxes. I have the PhoneMail Extensions in a Text File separated by Commas. My Problem is this:
The script works fine until ALL Extensions have been changed. When the script reaches the last entry (in the TEXT file), the Script file keeps running. The PhoneMail system is constantly scrolling through the Prompt "Subscriber Name or Extension: ".
I think that it cannot find the EOF marker. Here is the Script I have so far.
HERE IS A SAMPLE SCREEN CAPTURE. (Extensions in TEXT File are as Follows: 1234, 1235, 1236, 1237, 1238, 1239) Extension 1239 Does Not exist in the PhoneMail System.
Login:
Login: SYSADMIN
Password:
ROLM PhoneMail Version 6.3
(C) Copyright 1989-1997 Siemens Business Communication Systems.
All Rights Reserved.
ROLM PhoneMail Site Id: XXXXX94655
PhoneMail release 6.3.3.1
CPU Type of local node is GenuineIntel 80586 133MHz.
Please contact your Customer Service Representative now for service B106
PhoneMail is active with 8 Channels
Function: PROFILE
Thu Aug 29, 2002 2:09 PM
Action: MODIFY
Subscriber Name or Extension: 1234
Name (last first) : (Previous = Test Box One):
Class Number : (Previous = 30):
Extension [1] (Previous = 1234):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1235
Name (last first) : (Previous = My Test Two):
Class Number : (Previous = 30):
Extension [1] (Previous = 1235):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1236
Name (last first) : (Previous = My Test Three):
Class Number : (Previous = 30):
Extension [1] (Previous = 1236):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1237
Name (last first) : (Previous = My Test Four):
Class Number : (Previous = 30):
Extension [1] (Previous = 1237):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1238
Name (last first) : (Previous = My Test Five):
Class Number : (Previous = 30):
Extension [1] (Previous = 1238):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1239
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension: 888888
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension: ;
Function: lo
Thu Aug 29, 2002 2:15 PM
Action: lo
Login:
Any idea what may be causing this?
The script works fine until ALL Extensions have been changed. When the script reaches the last entry (in the TEXT file), the Script file keeps running. The PhoneMail system is constantly scrolling through the Prompt "Subscriber Name or Extension: ".
I think that it cannot find the EOF marker. Here is the Script I have so far.
Code:
proc main
string CapPath ="C:\Program File\Procomm Plus\Download\"
string szNewPswd
;string szPswd = szNewPswd
string szSiteName
string sTok1
string sTok2
string sLine
string sEnter = "^M"
;string TableFile
sdlginput "Site Name" "Enter Site Name:" szSiteName
pause 1
sdlginput "New Password" "Enter the New DEFAULT Password:" szNewPswd
pause 1
strcat szNewPswd sEnter
when target 0 "Extension [" call Press_Enter
when target 1 "Name (last first) :" call Press_Enter
when Target 2 "Class Number :" call Press_Enter
;clear
if isfile "C:\Program Files\Procomm Plus\Download\Extns.txt"
fopen 1 "C:\Program Files\Procomm Plus\Download\Extns.txt" READ TEXT
capture OFF
waitquiet 1
set capture path CapPath
set capture file szSiteName
set capture overwrite ON
set capture query OFF
capture ON
Execute "Log-SA.wax" ; Logs you into the PhoneMail System
waitfor "Function: " FOREVER ; and gets you to the Function: Prompt
transmit "PROFILE^M" ; this will bring you to the
waitfor "Action: " ; PhoneMail Modify
transmit "MODIFY^M" ; prompt in the system
while not feof 1
fgets 1 sLine
strtok sTok1 sLine "," 1 ;* 1st Field in File
strtok sTok2 sLine "," 1 ;* 2nd Field in File (2000)
strreplace sLine " " " "
waitfor "Subscriber Name or Extension: "
pause 1
transmit sTok2
transmit "^M"
mspause 500
waitfor "PhoneMail Password : (Previous = ##########): "
transmit szNewPswd
Pause 1
waitfor "Group Name :"
Pause 1
transmit ";^M"
endwhile
endif
fclose 1
transmit ";^M"
waitfor "Function: " forever
transmit "LOG^M"
waitfor "Action: " forever
transmit "LOG^M"
capture OFF
hangup
endproc
proc Press_Enter
pause 1
transmit "^M"
endproc
HERE IS A SAMPLE SCREEN CAPTURE. (Extensions in TEXT File are as Follows: 1234, 1235, 1236, 1237, 1238, 1239) Extension 1239 Does Not exist in the PhoneMail System.
Login:
Login: SYSADMIN
Password:
ROLM PhoneMail Version 6.3
(C) Copyright 1989-1997 Siemens Business Communication Systems.
All Rights Reserved.
ROLM PhoneMail Site Id: XXXXX94655
PhoneMail release 6.3.3.1
CPU Type of local node is GenuineIntel 80586 133MHz.
Please contact your Customer Service Representative now for service B106
PhoneMail is active with 8 Channels
Function: PROFILE
Thu Aug 29, 2002 2:09 PM
Action: MODIFY
Subscriber Name or Extension: 1234
Name (last first) : (Previous = Test Box One):
Class Number : (Previous = 30):
Extension [1] (Previous = 1234):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1235
Name (last first) : (Previous = My Test Two):
Class Number : (Previous = 30):
Extension [1] (Previous = 1235):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1236
Name (last first) : (Previous = My Test Three):
Class Number : (Previous = 30):
Extension [1] (Previous = 1236):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1237
Name (last first) : (Previous = My Test Four):
Class Number : (Previous = 30):
Extension [1] (Previous = 1237):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1238
Name (last first) : (Previous = My Test Five):
Class Number : (Previous = 30):
Extension [1] (Previous = 1238):
Extension [2]
PhoneMail Password : (Previous = ##########):
Group Name : (Previous = ):
Referral Extension : (Previous = 0):
Volume Level : (Previous = 0):
Speed level : (Previous = 0):
PhoneMail Capability: (Previous =
Accept Messages Answer Phone Do Message Alert
TRUE TRUE TRUE
Enter T or F for each field): F T F
Abbreviated Prompts?: (Previous = FALSE): ;
Subscriber Name or Extension: 1239
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension: 888888
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension:
Cannot find this form.
Subscriber Name or Extension: ;
Function: lo
Thu Aug 29, 2002 2:15 PM
Action: lo
Login:
Any idea what may be causing this?