1
0
Fork 0
src/psrelay/psrelay.1

43 lines
932 B
Groff

.TH PSRELAY 1
.SH NAME
psrelay \(en conditionally execute a process
.SH SYNOPSIS
psrelay
"["
.RB [ command
.RB ( argument... )]
"]"
"["
.RB [ command
.RB ( argument... )]
"]"
.SH DESCRIPTION
Psrelay runs the first given command and, if it exits successfully, runs the
second given command, exiting with the status of the second command.
.PP
Standard input given to psrelay is not directed to the first given command,
only to the second given command.
.SH DIAGNOSTICS
Psrelay will print an error message and exit with the appropriate status from
sysexits(3) in the event of improper invocation or operating system error.
Psrelay will exit with the status of the second given command if run without
error.
.SH BUGS
Unintuitively, "psrelay [ wc -c <file | xargs test 4 = ] [ cat ]" will
redirect the contents of "file" into "psrelay [ wc -c" and pipe that output to
"xargs test 4 = ] [ cat ]".
.SH COPYRIGHT
Public domain.