I'm using RedHat Enterprise Linux. We have dozens of instances of the same program running at the same time (in a big 'at' queue). I want to be able to suspend one or several to free up CPU time for others. Unfortunately since they all carry the same process name I don't know which one is which.
The programs are launched from different directories and write to different files though. Is there any way of linking a PID to the location it was launched from or linking a PID to a file it is writing to?
And once I have the PID, is there a simple command to suspend it and free up a CPU core? Basically I'm looking for something like what ctrl-z would do for the foreground process. And how do you later continue a suspended process?