1 .TH fag 1 "28 July 2017" "1.0" "User Commands"
4 fag \- daemonize program after a string was found (ForkAfterGrep)
11 .RI [ ARGUMENTS .\|.\|.]
17 to search the output of
19 for the regular expression
21 and daemonizes it when a match is found. The PID is then returned on stdout.
23 .SS "Behaviour Changing Options"
25 .BI \-t " SECONDS" "\fR
30 .BR \-k " [" \fISIGNAL\fP "]
31 If given, send a signal to
36 Right now, only decimal notation is implemented.
47 Be verbose; print program's
52 .SS "Generic Program Information"
55 Output a short usage message and exit.
58 Display version and copyright information and exit.
62 was found, 0 is returned. Otherwise, the exit status follows the BSD guideline outlined in
63 .B #include <sysexits.h>
64 if the error occured from within
66 or in case the chid process exits prematurely, its exit code is inherited. Notably, \fI69\fP is returned when the timeout is reached.
70 needs to be given as an integer; mnemonic should be supported in the future.
72 if grep exits with a code > 0, fag should terminate with grep's exit code and an error message. instead, fag exits as if a match was found.
74 Sometimes, stdin behaves strange after the program terminates.
76 Please report bugs and patches to the issue tracker at https://github.com/girst/forkaftergrep/.
78 Some might find the name of this program offensive. Feel free to create a symlink or alias on your system.
80 Copyright 2017 Tobias Girstmair. This is free software; see https://www.gnu.org/licenses/gpl-3.0.html for conditions.
82 Tobias Girstmair (http://isticktoit.net)