It would be nice, if one could figure out the PID of a
running experiment (labrun with --batch), in case one
wants to kill the program.
Perhaps a PID of the labrun process could be enough.
But
I am not sure whether killing the labrun is enough to
kill
the process.
Figuring out the PID of the experiment could be
difficult,
if not impossible (labrun labmex runsave.py ...).
But anyway, it should be easy to guess the right PID
of the experiment from the PID of the labrun.
Idea: additional file: {basefilename}.id holds the ID
of the
parent process (hopefully you can guess the right
subprocess
from that). The file is removed after completion.