> If you were running a high reliability system, you'd want to do something like > the above; otherwise, if the instance of the script that made the pidfile had > died, you could end up killing some other process that happened to get that > pid the next time around. In some cases you might even have to worry about > some other script also being named "myscript" and getting the same pid.
Good thing I'm not in charge of high reliability systems huh? Well, here's the fruits of my labors. I present: ScreenCam 0.1 http://www.stuporglue.org/moores/webcam/ It takes a screenshot at regular intervals and uploads them to a server of your choice. It also features the "Snap Now!" button which will immediatly take a shot and upload it without interrupting the regular interval process. There was probably an easier way than what I did, but it's too late now. :-) I put the iChat video window in the top left corner and it uploads an image every 2 minutes to my server (when it's running, of course). My family back home is still on dialup, and so I didn't think a real web-cam would be a good idea. This way when we're chatting on the phone, they can see the baby almost live. If anyone wants it let me know, and I'll be glad to share. Thanks for the help! -- Michael Moore ------------------------------- www.stuporglue.org -- Donate your used computer to a student that needs it. -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
