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

Logi and run

Status
Not open for further replies.

Dphone

IS-IT--Management
Jun 6, 2003
220
US
On a PC with procomm already running. How do I get this script to wait for a certain time and then log itself in and run the script every 30 seconds for 30 minutes? The waituntil doesn't seem to work. And how do I make it run again in 30 seconds for 30 minutes? Nortel PBX



;Waituntil "12:20:00" "10/08/07"

proc main

Transmit "****^M"
pause 1
Transmit "LOGI^M"
pause 1
transmit "4158^M"
waitfor ">"
transmit "LD 60^M"
waitfor "."
transmit "STAT^M"

endproc



 
Something like:
Code:
proc main

  for i in 1 upto 60
  
   Transmit "****^M"
   pause 1
   Transmit "LOGI^M"
   pause 1
   transmit "4158^M"
   waitfor ">"
   transmit "LD 60^M"
   waitfor "."
   transmit "STAT^M"
  
  pause 25
  endfor

endproc
Maby?
Typed, not tested.


 
doesn't like

f or i in 1 upto 60
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top