lsb_signaljob
Sends a signal to a job.Use lsb_signaljob when migrating a job from one host to another. Use lsb_signaljob to stop or kill a job on a host before using lsb_mig to migrate the job. Next, use lsb_signaljob to continue the stopped job at the specified host.
Generally, use lsb_signaljob to apply any UNIX signal to a job or process.
Any program using this API must be setuid to root if LSF_AUTH is not defined in the lsf.conf file.
#include <lsf/lsbatch.h>
int lsb_signaljob (LS_LONG_INT jobId, int sigValue)
Data Structures:
- Parameters:
jobId The job to be signaled. If a job in a job array is to be signaled, use the array form jobID[ i ] where jobID is the job array name, and i is the index value. sigValue SIGSTOP, SIGCONT, SIGKILL or some other UNIX signal. Define Statements:
- none
- none
Errors:
- Returns:
- int:0
The function was successful.int:-1
The function failed.Equivalent line commands:
- If the function fails, lsberrno is set to indicate the error.
Files:
- bkill
bstop
bresume
- ${LSF_ENVDIR:-/etc}/lsf.conf
- See also:
- lsb_chkpntjob
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.