Subj : Re: still not tossing
To   : Rick Smith
From : Wilfred van Velzen
Date : Thu Jan 12 2023 03:30 pm

Hi Rick,

On 2023-01-12 05:44:34, you wrote to me:

WV>>>>>> {
WV>>>>>>   echo "processsing"
WV>>>>>>   echo "PATH = $PATH";
WV>>>>>>   echo "SHELL = $SHELL";
WV>>>>>>   /usr/local/bin/hpt toss

WV>>>>>> } >/tmp/test.txt 2>&1

WV>>>>>> So you can see everything that is written to stdout and stderr

RS>>>>> I am giving this a go thankyou... Where will I see the errors
RS>>>>> from it?  I am unfamiliar with stdout and stderr..

WV>>>> It is what the software normally outputs to the console screen
WV>>>> (normal and errors). It's now redirected to the /tmp/test.txt
WV>>>> file...

RS>>> ok, still not tossing but now the test.txt isnt being created
RS>>> with the script above that you suggested?

WV>> Does it work on the commandline, and creating the /tmp/test.txt file?

RS> works fine on command line.. I noticed that it ran last night at
RS> midnight on one packet but /in was still full of pkts... Crazy

And what was in the /tmp/test.txt file after it ran?

And you should probably change the > to >> so the output of previous runs don't get overwritten. And change the 'echo "processing"' to 'date +"%F %T%tprocessing"', so you can put a timestamp on when things are happening.


Bye, Wilfred.

--- FMail-lnx64 2.1.5.1-B20230107
* Origin: FMail development HQ (2:280/464)