Posted by Keith Smith on November 21, 2008 at 20:29:22:
In Reply to: Comet Anywhere Watchdog posted by Jon Sacks on November 19, 2008 at 11:13:11:
Jon: At the beginning of my career, I was always thinking of ways to make life easier for myself by coding a program. Upon reading your blog, started thinking how this could be done. Give a problem to several programmers and you'll get several solutions. So there is no ONE solution! I'll offer two possibilities. PSTAT was my first thought. If someone leaves their workstation, then PSTAT will just keep delivering the same status info. By use of an array, keyed file or string fields store the entire PSTAT result string, increment a counter, perform a PAUSE then repeat. If the result string ever changes, reset the counter to zero and repeat. PAUSE 18 is 1 second. You decide the PAUSE value. If the counter ever gets to a set number, KILL the partition. Comet Anywhere has logged off. 2nd solution could be to run a program in background that KILLS partitions at a set time, say 10:00 PM. Here's the baton...
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.