NAME
mpdsigjob
FILE
/Users/goodell/svn/mpich2-1.2.1p1-tmp/src/pm/mpd/mpdsigjob.py
DESCRIPTION
usage: mpdsigjob
sigtype [-j jobid OR -a jobalias] [-s|g] sigtype must be the
first arg jobid can be obtained via mpdlistjobs and is of the
form: jobnum@mpdid where mpdid is mpd where first process runs,
e.g.: 1@linux02_32996 (may need @ in some shells)
1 is sufficient if you are on the machine where the job
started one of -j or -a must be specified (but only one)
-s or -g specify whether to signal the single user
process or its group (default is g) Delivers a Unix
signal to all the application processes in the job
FUNCTIONS
close(...) close(fd)
Close a file descriptor (for low level IO).
ctime(...) ctime(seconds) -> string
Convert a time in seconds since the Epoch to a string in local
time. This is equivalent to asctime(localtime(seconds)). When
the time tuple is not present, current time as returned by
localtime() is used.
exit(...) exit([status])
Exit the interpreter by raising SystemExit(status). If the
status is omitted or None, it defaults to zero (i.e., success).
If the status is numeric, it will be used as the system exit
status. If it is another kind of object, it will be printed and
the system exit status will be one (i.e., failure).
fromfd(...) fromfd(fd, family, type[, proto]) -> socket object
Create a socket object from a duplicate of the given file
descriptor. The remaining arguments are the same as for
socket().
getuid(...) getuid() -> uid
Return the current process’s user id.
mpdsigjob()
sig_handler(signum, frame)
signal(...) signal(sig, action) -> action
Set the action for the given signal.
The action can be SIG_DFL,
SIG_IGN, or a callable Python object.
The previous action is
returned.
See getsignal() for possible return values.
*** IMPORTANT NOTICE *** A signal handler function is called
with two arguments: the first is the signal number, the second
is the interrupted stack frame.
usage()
DATA
AF_UNIX = 1 SIGALRM = 14 SIGCONT = 19 SIGINT = 2 SIGTSTP = 18 SIG_DFL =
0 SOCK_STREAM = 1 __author__ = ’Ralph Butler and Rusty Lusk’
__credits__ = ’’ __date__ = ’Mon Feb 22 16:28:12 2010’ __version__ =
’$Revision: 1.21 $’ argv = [’/usr/bin/pydoc’, ’mpdsigjob’] environ =
{’_’: ’/usr/bin/pydoc’, ’HOME’: ’/Users/goodell’...=00;36:*....
VERSION
1.21
DATE
Mon Feb 22 16:28:12 2010
AUTHOR
Ralph Butler and Rusty Lusk
CREDITS
22 February 2010 mpdsigjob(1)