Hello All,
I am trying to create a script to do remote backups of PBX's. In order to log on I have to wake the system by pressing the return key between 5 and 10 times very quickly. If I put a simple Transmit ^M^M^M^M^M in my script it doesn't transmit fast enough an therefore doesn't always wake the PBX I have borrowed some code from a sample script with a while statement so that it will keep trying, but it doesn't transmit anything. See below for what I have so far.
Thanks,
Simon
mitelman
while FAILURE ;loop until we get desired response
if szLoop > 10
szExitcode = 1
hangup
goto Exitcode ;logs results of logon
endif
szLoop=szLoop+1
transmit "^M^M^M^M^M"
transmit "^M^M^M^M^M"
waitfor "VT-100" 1
endwhile
I am trying to create a script to do remote backups of PBX's. In order to log on I have to wake the system by pressing the return key between 5 and 10 times very quickly. If I put a simple Transmit ^M^M^M^M^M in my script it doesn't transmit fast enough an therefore doesn't always wake the PBX I have borrowed some code from a sample script with a while statement so that it will keep trying, but it doesn't transmit anything. See below for what I have so far.
Thanks,
Simon
mitelman
while FAILURE ;loop until we get desired response
if szLoop > 10
szExitcode = 1
hangup
goto Exitcode ;logs results of logon
endif
szLoop=szLoop+1
transmit "^M^M^M^M^M"
transmit "^M^M^M^M^M"
waitfor "VT-100" 1
endwhile