---
name: "mpdsigjob"
section: "1"
platform: "linux"
package: "mpich2"
version: "1.2.1.1-5"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/mpdsigjob"
---

# mpdsigjob(1)

## 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
