> echo "I'm the only one running, so now I'll do some stuff..." > echo `(some command to get your own PID)` > /tmp/mypidfile
You know, I should have figgured that there was an easy way to get the PID. I just kept thinking "how would I get it out of this line: "liney 1000 0.0 0.1 18644 572 std S 9:52PM 0:00.00 bash ./loopy.sh" To get the pid, you just need to do: MYPID=$$ That with a pid file will work just great! Thank you! -- 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
