Hi,
I'm having a bit of a problem with wrapping mpirun in a script. The
script needs to run an MPI job in the background and tail -f the output.
Pressing Ctrl+C should stop tail -f, and the MPI job should continue.
However mpirun seems to detect the SIGINT that was meant for tail, and
kills t
just worsen the values.
Anyway, why does mpirun bypass the traps I try to set and how do I stop it
doing so?
Thanks,
Pablo
On 23/04/11 13:20, Reuti wrote:
Hi,
Am 23.04.2011 um 04:31 schrieb Pablo Lopez Rios:
I'm having a bit of a problem with wrapping mpirun in a script. The script
ne
te:
On Apr 23, 2011, at 6:20 AM, Reuti wrote:
Hi,
Am 23.04.2011 um 04:31 schrieb Pablo Lopez Rios:
I'm having a bit of a problem with wrapping mpirun in a script. The script
needs to run an MPI job in the background and tail -f the output. Pressing
Ctrl+C should stop tail -f, and the MP
t&
)
)
tail -f out
also has the same effect. How is mpirun overriding the trap in the *parent*
subshell so that it ends up getting the SIGINT that was supposedly blocked at
that level? Am I missing something trivial? How can I avoid this?
Thanks,
Pablo
On 23/04/11 16:27, Ralph Cas
:33 schrieb Ralph Castain:
On Apr 23, 2011, at 10:40 AM, Pablo Lopez Rios wrote:
I'm not sure what you are actually trying to accomplish
I simply want a script that runs the equivalent of:
mpirun command>& out&
tail -f out
such that hitting Ctrl+C stops tail but leaves mpirun
18:33, Ralph Castain wrote:
On Apr 23, 2011, at 10:40 AM, Pablo Lopez Rios wrote:
I'm not sure what you are actually trying to accomplish
I simply want a script that runs the equivalent of:
mpirun command>& out&
tail -f out
such that hitting Ctrl+C stops tail but leaves mpiru
ou can't kill mpirun when something goes wrong
Thanks,
Pablo
On 23/04/11 18:39, Reuti wrote:
Am 23.04.2011 um 19:33 schrieb Ralph Castain:
On Apr 23, 2011, at 10:40 AM, Pablo Lopez Rios wrote:
I'm not sure what you are actually trying to accomplish
I simply want a script that run