The double quotes failed because I missed escaping the "|" character. It is another perl special character. Should work fine as below.
$chan->exec("zcat /db2home/idsldap/idsslapd-idsldap/logs/ibmslapd.log.$ibmslapd_fn-2350.gz \| grep -i \"entries have been successfully\" ");
In reply to Re^4: NET:SSH2 exec syntax usage
by SitrucHtims
in thread NET:SSH2 exec syntax usage
by ZigZaggin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |