in reply to Re^3: NET:SSH2 exec syntax usage
in thread NET:SSH2 exec syntax usage
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\" ");
|
|---|