chiark / gitweb /
prlimit: New program for fiddling with resource limits.
[misc] / buf.1
1 .de VS
2 .sp 1
3 .RS
4 .nf
5 .ft B
6 ..
7 .de VE
8 .ft R
9 .fi
10 .RE
11 .sp 1
12 ..
13 .TH buf 1 "5 February 2005" "Edgeware tools"
14 .SH NAME
15 buf \- buffer stdin to a file
16 .SH SYNOPSIS
17 .B buf
18 .I command
19 .RI [ arguments ...]
20 .SH DESCRIPTION
21 The
22 .B buf
23 program writes standard input to a temporary file.  It then runs
24 .VS
25 .IR "command arguments " ... " stdinfile"
26 .VE
27 and exits with whatever exit status that exited with.
28 .PP
29 This is particularly useful for programs which want to seek their
30 standard input, for example PostScript viewers.  A typical invokation
31 might be something like
32 .VS
33 man -Tps buf | buf gv
34 .VE
35 .SH BUGS
36 Doesn't exit correctly if subprogram was killed by a signal.
37 .SH AUTHOR
38 Mark Wooding <mdw@distorted.org.uk>