[//000000001]: # (processman \- processman) [//000000002]: # (Generated from file 'processman\.man' by tcllib/doctools with format 'markdown') [//000000003]: # (Copyright © 2015 Sean Woods ) [//000000004]: # (processman\(n\) 0\.6 tcllib "processman")
[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]
# NAME processman \- Tool for automating the period callback of commands # Table Of Contents - [Table Of Contents](#toc) - [Synopsis](#synopsis) - [Description](#section1) - [Commands](#section2) - [Bugs, Ideas, Feedback](#section3) - [Keywords](#keywords) - [Category](#category) - [Copyright](#copyright) # SYNOPSIS package require Tcl 8\.5 package require twapi 3\.1 package require cron 1\.1 package require processman ?0\.6? [__::processman::find\_exe__ *name*](#1) [__::processman::kill__ *id*](#2) [__::processman::kill\_all__](#3) [__::processman::killexe__ *name*](#4) [__::processman::onexit__ *id* *cmd*](#5) [__::processman::priority__ *id* *level*](#6) [__::processman::process\_list__](#7) [__::processman::process\_list__ *id*](#8) [__::processman::spawn__ *id* *cmd* *args*](#9) # DESCRIPTION The __processman__ package provides a Pure\-tcl set of utilities to manage child processes in a platform\-generic nature\. # Commands - __::processman::find\_exe__ *name* Locate an executable by the name of *name* in the system path\. On windows, also add the \.exe extention if not given\. - __::processman::kill__ *id* Kill a child process *id*\. - __::processman::kill\_all__ Kill all processes spawned by this program - __::processman::killexe__ *name* Kill a process identified by the executable\. On Unix, this triggers a killall\. On windows, __twapi::get\_process\_ids__ is used to map a name one or more IDs, which are then killed\. - __::processman::onexit__ *id* *cmd* Arrange to execute the script *cmd* when this programe detects that process *id* as terminated\. - __::processman::priority__ *id* *level* Mark process *id* with the priorty *level*\. Valid levels: low, high, default\. On Unix, the process is tagged using the __nice__ command\. On Windows, the process is modifed via the __twapi::set\_priority\_class__ - __::processman::process\_list__ Return a list of processes that have been triggered by this program, as well as a boolean flag to indicate if the process is still running\. - __::processman::process\_list__ *id* Return true if process *id* is still running, false otherwise\. - __::processman::spawn__ *id* *cmd* *args* Start a child process, identified by *id*\. *cmd* is the name of the command to execute\. *args* are arguments to pass to that command\. # Bugs, Ideas, Feedback This document, and the package it describes, will undoubtedly contain bugs and other problems\. Please report such in the category *odie* of the [Tcllib Trackers](http://core\.tcl\.tk/tcllib/reportlist)\. Please also report any ideas for enhancements you may have for either package and/or documentation\. When proposing code changes, please provide *unified diffs*, i\.e the output of __diff \-u__\. Note further that *attachments* are strongly preferred over inlined patches\. Attachments can be made by going to the __Edit__ form of the ticket immediately after its creation, and then using the left\-most button in the secondary navigation bar\. # KEYWORDS [odie](\.\./\.\./\.\./\.\./index\.md\#odie), [processman](\.\./\.\./\.\./\.\./index\.md\#processman) # CATEGORY System # COPYRIGHT Copyright © 2015 Sean Woods