Thanks for your advice... u had a point there.
As i don't have gawk installed on my system, and fflush is not defined in my awk installation... i read system function might be similar (if it is used in a proper way)
So, I tried changing the tail command line with...
Interesting... I am working on the same OS.
I don't even know if your script might help me, given the fact that the data appended to the log file comes in blasts which have variable number of lines, but still, can i ask u to post your sollution?... It may be inspiring :).
Thanks for your reply!
Hello,
I need some help with the following script:
if ! [ -f ${PATH}/myfile.txt ];then
echo $(date +%Y%m%d"_"%H%M%S)": Nu am gasit fisierul ${PATH}/myfile.txt"
ps -fxu pin | grep "/usr/local/coreutils/bin/tail -f ${LOG_PATH}/x.log$" | awk '{system("kill "$2)}'
cat ${LOG_PATH}/x.log |...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.