I'm really not familiar with this program, so I don't know how to test it. But, here is the patch.
-mrt
>From cde735937250835f7d0af716af76e65d311b1edc Mon Sep 17 00:00:00 2001 From: "Matthew R. Trower" <d...@blackshard.net> Date: Tue, 30 Oct 2018 21:16:39 -0500 Subject: [PATCH] Restore original `tail` functionality in ttsnoop, with POSIX args --- cde/programs/ttsnoop/ttsnoop.C.src | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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) { -- 2.16.2
Jon Trulson <j...@radscan.com> writes: > That worked for me... Send a patch, I'll apply it. > > -jon > > On 10/25/18 1:09 AM, Matthew R. Trower wrote: >> tail -n +0 -f
_______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel