incrontab command lines are not shell compatible?

From: Egon Schmid <schmid_at_bairle.de>
Date: Tue, 8 Dec 2009 11:19:20 +0100

Hi,

it seems the command lines does not support feature that shells (and
cron!) do:

Multiple commands, separated by '&&':
/my/dir IN_CREATE do_something && do_more
-> calls only 'do_something'

Output Redirection:
/my/dir IN_CREATE echo $# created in $@ >>/var/log/incron.log
-> does not work

I guess the pipe operator and other features won't work either.

Maybe you only need to use a library to add those shell features?
You could look how cron supports them.

Best regards

Egon Schmid
Received on Tue Jun 05 2012 - 22:14:21 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST