[GE users] how to checkpoint cadence simulator spectre

Reuti reuti at staff.uni-marburg.de
Tue Nov 6 08:30:19 GMT 2007


Hi,

Am 06.11.2007 um 08:35 schrieb Jan Sundermeyer:

> The hint about the group process id and the method mentioned in
> APSTC-TB-2004-005.pdf solved the problem.

great!

> Right now i use application interface for checkpoint, applying the
> following script for checkpointing and migration.
> The argument of the script is the $job_pid.
>
> #!/bin/sh
> #
> # spectre_migrate.sh
> #
> cpid=`pstree -p $1|awk -F "(" '{  print $NF }' |awk -F ")" '{ print  
> $1 }'`
> kill -s SIGINT $cpid

As you give the $job_pid as argument to this script, it might also be  
coded just as:

#!/bin/sh
kill -int -- -$1

The negative pid will signal the complete processgroup, the -- will  
end option arguments to kill.

-- Reuti

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list