in reply to Diagnositc output on background processes

it's also possible to write to a given tty like:
## ## print output to given tty ## $tty = $ARGV[0]; open(OUTPUT, "> /dev/$tty") || die ("can't open device: $!\n"); print OUTPUT "Hi, what's going on?\n"; close(OUTOUT);

you can get the tty from a terminal by the mighty "tty"-command.

MP