Hi,
Below is small part of bash script....this script pulls logs from another server thru SSH. Do you think there is some issue with this part of script. Although i am not scripting expert but i think.
sudo -u backup ssh ${serv} cat ""${fic}"" | gawk -v min=$dat_min -v max=$dat_max -F '|' 'BEGIN {dat_min=min;
dat_max=max} {split($2,a," ");split(a[1],b,"-");
split(a[2],c,":");
date=b[1]" "b[2]" "b[3]" "c[1]" "c[2]" "c[3];date=mktime(date);
if ((date>=dat_min)&&(date<=dat_max))
{print $0}}'|fgrep -v 'additionnelles' >${tempFile}
Please help.
Thanks!
I didn't find the right solution from the Internet.
References: https://www.linuxquestions.org/question ... ost5800396
B2B Online Campaign Examples