Re: loop script that never ends

2002-05-31 Thread Peter Scott
At 02:25 PM 5/31/02 -0500, Lance Prais wrote: >I am trying to call a script that will run every 10 seconds for 1 minute >then exit. > >[snip] >There are a couple of problems that I am having: >1. The script is never ending. I though "while (1)" is the right way to >do this. Out of curiosity

Re: loop script that never ends

2002-05-31 Thread Jeff 'japhy' Pinyan
On May 31, Lance Prais said: >There are a couple of problems that I am having: >1. The script is never ending. I though "while (1)" is the right way to >do this. The script never ends because you're using 'while (1) { ... }'. That goes on forever. You'll have to tell Perl to stop manually

loop script that never ends

2002-05-31 Thread Lance Prais
I am trying to call a script that will run every 10 seconds for 1 minute then exit. This code calls a siebel function that writes to a .txt file. $cmd = '..\\..\\srvrmgr /g apollo.ts.checkpoint.com /e CHK_ENT_PRD /s CHK_SBL_PRD /u xxx /p xx /c "list tasks for server CHK_SBL_PRD co