.\" Copyright LluĂ­s Batlle i Rossell .\" .\" This file may be copied under the conditions described .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998 .\" that should have been distributed together with this file. .\" .\" Note: I took the gnu 'ls' man page as an example. .TH TS 1 2012-05 "Task Spooler 0.7.4" .SH NAME ts \- task spooler. A simple unix batch system .SH SYNOPSIS .BI "tsp [" actions "] [" options "] [" command... ] .sp Actions: .BI "[\-KClhV] .BI "[\-t ["id ]] .BI "[\-c ["id ]] .BI "[\-p ["id ]] .BI "[\-o ["id ]] .BI "[\-s ["id ]] .BI "[\-r ["id ]] .BI "[\-w ["id ]] .BI "[\-u ["id ]] .BI "[\-i ["id ]] .BI "[\-U <"id - id >] .BI "[\-S ["num ]] .sp Options: .BI "[\-nfgmd]" .BI "[\-L <"label >] .BI "[\-D <"id >] .SH DESCRIPTION .B ts will run by default a per user unix task queue. The user can add commands to the queue, watch that queue at any moment, and look at the task results (actually, standard output and exit error). .SH SIMPLE USE Calling .B ts with a command will add that command to the queue, and calling it without commands or parameters will show the task list. .SH COMMAND OPTIONS When adding a job to ts, we can specify how it will be run and how will the results be collected: .TP .B "\-n" Do not store the standard output/error in a file at .B $TMPDIR - let it use the file descriptors decided by the calling process. If it is not used, the .B jobid for the new task will be outputed to stdout. .TP .B "\-g" Pass the output through gzip (only if .B \-n ). Note that the output files will not have a .gz extension. .TP .B "\-f" Don not put the task into background. Wait the queue and the command run without getting detached of the terminal. The exit code will be that of the command, and if used together with \-n, no result will be stored in the queue. .TP .B "\-m" Mail the results of the command (output and exit code) to .B $TS_MAILTO , or to the .B $USER using .B /usr/sbin/sendmail. Look at .B ENVIRONMENT. .TP .B "\-L