[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] How to send a "stop script" signal to MacPerl?



Hmm, why not locate the memory leak? It would give better results anyways.

To stop the script automatically, i need some info:
Is it a script that runs once for 36 hours long, or is it a script that
runs a few times in that 36 hours. If so, you can write the time it
first started into a file and check the time every time the script starts.
If the time in between is larger than 36 hours, then stop. Stop would
prolly work with the command 'exit(0)' or __END__ (That works for me)

tinus

On Sun, 20 Aug 2000, Joseph A. DiVerdi wrote:

> I have an MacPerl script that runs continuously for an extended 
> period of time. Unfortunately, there is a memory leak somewhere and 
> not surprisingly, MacPerl runs out of memory after a bit. I've done a 
> good deal of trouble shooting on the leak and while I continue that 
> work I must periodically send a "stop script" signal ("cmd-.") to the 
> script which causes a little cleanup to be performed and then MacPerl 
> to quit. I can then launch the script (saved as an application) and 
> am OK for around 36 hours. As an aside and a test I have successfully 
> stretched out the "time between maintenance" to almost 100 hours by 
> allocating more memory to MacPerl.
> 
> I would like to automate this stopping and launching process and am 
> looking for suggestions on how to accomplish it. I've got "cron" 
> running on the machine so I thought that I might write a short 
> AppleScript to do the deed but cannot figure out how to send the 
> requisite signal.
> 
> Any thoughts on this scheme or others would be greatly appreciated.
> 
> Best regards,
> Joseph
> --
> Joseph A. DiVerdi, Ph.D., M.B.A.
> <mailto:diverdi@XTRsystems.com>             970.221.3982 (voice)
> <http://www.XTRsystems.com>                 970.224.3723 (fax)
> %PGPKeyID=('D50A9E33')
> 
> # ===== Want to unsubscribe from this list?
> # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org
> 


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org