[torqueusers] qdel and remaining parts of jobs
glen.beane+torque at gmail.com
Tue Sep 26 05:29:40 MDT 2006
On 9/26/06, bill <cluster.bill at alinto.com> wrote:
> How can I work inside the batch system?
If you compile LAM with TM support (the Torque/PBS task manager API),
lamboot will detect the torque environment and use TM to launch all of
the lamd processes. When a user runs qdel, all lamd processes will be
cleaned up properly because they are all under torque's control. As
for using ssh in your perl script, you'll probably want to look at
pbsdsh. You can check the environment for some variables that are
only defined within a batch job (like $PBS_NODEFILE), and if that
variable is defined use pbsdsh, otherwise fall back to your old
behavior. That way the script can work in or out of the batch system.
More information about the torqueusers