mailbox125
Technical User
I have written a script that dials several systems and runs and captures reports. Is there a way that the script can capture any of the systems that ProCom was not able to log onto, or is that something in ProCom??
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
proc main
string sEntName ; for entry name
integer iDDSize ; for size of dial dir
integer iCount ; for current entry ID
dailload "PW5.DIR" ; load dial directory
dialcount DATA iDDSize ; count # of entries
for iCount = 0 upto (iDDSize - 1) ; for each entry
dialname DATA iCount sEntName ; get entry name
dial DATA sEntName ; dial entry
while $DIALING ; pause while dialling
yield
endwhile
if $CARRIER
; if connect successful continue processing.
else
; if connection fails display on status line
; entry name and reason for failure.
statmsg "%s: %s" $DIALENTRY $CNCTMSG
endif
endfor
endproc
[code]
.
.
dialcount DATA GROUP "My Group" iDDSize
for iCount = 0 upto (iDDSize - 1)
dialname DATA GROUP "My Group" iCount sEntName
.
.
fopen 1 "errorlog.txt" append text
fstrfmt 1 "%s: %s - %s`r`n" $TIME $DIALENTRY $CNCTMSG
fclose 1