in reply to Killing multiple logins.

An approach that would work equally well on solaris and linux would be one that scans /proc, figures out which processes belong to you, and which of your processes are older than the shell from which the current perl process is running. This can be done simply in at least a couple different ways, using opendir or just parsing the output of `ls -l /proc | grep myname`.

Of course, if you happen to run any jobs that are supposed to keep going for days in the background, you might want something like a dot file in your home directory that the killer script can look for, to know which jobs to leave alone (and have a substitute or wrapper for "nohup" that puts pids into such a file). Have fun with that.

Update:Duh -- just realized I was wrong to think that ls -ld /proc/[1-9]* could tell you how old the jobs are on linux; this does to work on solaris, at least.