I am running various programs on Unix in the background. Each program is outputting into a different file, e.g.:
python eventsim.py > logfile & python eventsim.py > log1 &
Now say I want to kill the process that outputs to the file log1, but I no longer remember what its pid is. Is there a way I can retrieve that info?