processman - Tool for automating the period callback of commands
The processman package provides a Pure-tcl set of utilities to manage child processes in a platform-generic nature.
Locate an executable by the name of name in the system path. On windows, also add the .exe extention if not given.
Kill a child process id.
Kill all processes spawned by this program
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.
Arrange to execute the script cmd when this programe detects that process id as terminated.
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
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.
Return true if process id is still running, false otherwise.
Start a child process, identified by id. cmd is the name of the command to execute. args are arguments to pass to that command.
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. Please also report any ideas for enhancements you may have for either package and/or documentation.
Copyright © 2015 Sean Woods <firstname.lastname@example.org>