s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

s6-tai64n.html (1491B)


      1 <html>
      2   <head>
      3     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      4     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      5     <meta http-equiv="Content-Language" content="en" />
      6     <title>s6: the s6-tai64n program</title>
      7     <meta name="Description" content="s6: the s6-tai64n program" />
      8     <meta name="Keywords" content="s6 command s6-tai64n filter timestamp TAI64 TAI64N" />
      9     <!-- <link rel="stylesheet" type="text/css" href="//skarnet.org/default.css" /> -->
     10   </head>
     11 <body>
     12 
     13 <p>
     14 <a href="index.html">s6</a><br />
     15 <a href="//skarnet.org/software/">Software</a><br />
     16 <a href="//skarnet.org/">skarnet.org</a>
     17 </p>
     18 
     19 <h1> The s6-tai64n program </h1>
     20 
     21 <p>
     22 s6-tai64n acts as a filter, reading from stdin and writing to stdout.
     23 It prepends lines with a
     24 <a href="//skarnet.org/software/skalibs/libstddjb/tai.html#timestamp">TAI64N
     25 timestamp</a> and a space.
     26 </p>
     27 
     28 <h2> Interface </h2>
     29 
     30 <pre>
     31      s6-tai64n
     32 </pre>
     33 
     34 <ul>
     35  <li> s6-tai64n exits 0 when it sees the end of stdin. If there's an
     36 unfinished line, s6-tai64n processes it, adds a newline character to it,
     37 and writes it before exiting. </li>
     38 </ul>
     39 
     40 <h2> Notes </h2>
     41 
     42 <p>
     43  s6-tai64n does neither "line buffering" nor "block buffering". It does
     44 <em>optimal buffering</em>, i.e. it flushes its output buffer every time
     45 it risks blocking on input. Every filter should behave this way, whether
     46 its output is a tty or not: it's simpler and more efficient in every
     47 case.
     48 </p>
     49 
     50 </body>
     51 </html>