Hi,
I kept cosidering the alternatives, and apart from the UDS idea (not feasible), the incomplete "bye" command, there's also another option!
kill `ps -U <USER> | grep bm_srv12 | sed 's/^ *//g' | cut -d' ' -f1`
On OpenBSD and FreeBSD, this construct does return the PID indeed. I'm just not sure how portable that is in general. Quite less portable is killall (which does not even exist on OpenBSD), but on FreeBSD it has an -u for user option. I.e. "killall -u andy bm_srv12" will do it, but only on FreeBSD :-( Cheers, Andreas -- **************************** NEW ADDRESS ****************************** Hamburger Sternwarte Universitaet Hamburg Gojenbergsweg 112 Tel. ++49 40 42891 4016 D-21029 Hamburg, Germany Fax. ++49 40 42891 4198