AW: incrontab command lines are not shell compatible?

From: Zeitschel, Philipp <philipp.zeitschel_at_siemens.com>
Date: Tue, 8 Dec 2009 13:15:26 +0100

Try to put your command in "

-----Ursprngliche Nachricht-----
Von: Egon Schmid [mailto:schmid_at_bairle.de]
Gesendet: Dienstag, 8. Dezember 2009 11:19
An: incron_at_aiken.cz
Betreff: incrontab command lines are not shell compatible?

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