From: Matthew R. Trower Date: Wed, 31 Oct 2018 02:16:39 +0000 (-0500) Subject: Restore original `tail` functionality in ttsnoop, with POSIX args X-Git-Tag: 2.3.0a~25^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=041788debc99fe887152a7ffa9ce55206956ab58;p=oweals%2Fcde.git Restore original `tail` functionality in ttsnoop, with POSIX args --- diff --git a/cde/programs/ttsnoop/ttsnoop.C.src b/cde/programs/ttsnoop/ttsnoop.C.src index e80312aa..60b4a392 100644 --- a/cde/programs/ttsnoop/ttsnoop.C.src +++ b/cde/programs/ttsnoop/ttsnoop.C.src @@ -517,8 +517,10 @@ main(int argc, char **argv) } } apiTracerArgv[ 0 ] = "tail"; - apiTracerArgv[ 1 ] = "-f"; - apiTracerArgv[ 2 ] = traceFile; + apiTracerArgv[ 1 ] = "-n"; + apiTracerArgv[ 2 ] = "+0"; + apiTracerArgv[ 3 ] = "-f"; + apiTracerArgv[ 4 ] = traceFile; if (snoopFile == 0) { // // Set up fifo for snoop output @@ -530,8 +532,10 @@ main(int argc, char **argv) } } snooperArgv[ 0 ] = "tail"; - snooperArgv[ 1 ] = "-f"; - snooperArgv[ 2 ] = snoopFile; + snooperArgv[ 1 ] = "-n"; + snooperArgv[ 2 ] = "+0"; + snooperArgv[ 3 ] = "-f"; + snooperArgv[ 4 ] = snoopFile; if (optind < argc) { if (committed2Snooping) {