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

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



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