in reply to word search in perl script

The first step is to look at the value of $SYNC in the error case.

Maybe it contains whitespace, or it contains additional information or other stuff. Maybe it is empty because the command didn't output anything?

You are doing a lot of awk-ing and grep-ping in your pipelines - Perl can do that too, and maybe you're throwing away important information, at least for debugging?

Replies are listed 'Best First'.
Re^2: word search in perl script
by cbtshare (Monk) on Feb 08, 2020 at 21:33 UTC
    I see no spaces in the $SYNC, and I made sure to chomp then do a search .