-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi,
On 15/07/18 18:30, Tony White via luv-main wrote: > You could look at multitail. > > https://www.vanheusden.com/multitail/ This is a better example with multitail: $ multitail -ex '(aaa|aab|aac)' "echo do work \$(date) >> coker-test.action-time" -l "tail -n0 -f coker-test.log|egrep '(aaa|aab|aac)'" (don't need --line-buffered with this one) NB: The \$ so that the command runs at that time of the detection, rather than when multitail was initiated. Cheers A. -----BEGIN PGP SIGNATURE----- iF4EAREIAAYFAltLHuIACgkQqBZry7fv4vu31gD8DNtRgsrBK9TTjAZAtIRblqRa Sxg9mZwoLCSEqpwEg5kBAIWkfU4JBspe6Xl1xHZ0NzDkwvFKRwODWgwwS6UzHPF2 =N5BJ -----END PGP SIGNATURE----- _______________________________________________ luv-main mailing list [email protected] https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
