Re: incrontab command lines are not shell compatible?

From: Lukáš Jelínek <lukas_at_aiken.cz>
Date: Wed, 09 Dec 2009 22:26:48 +0100

Hi,
this can be currently only made indirectly by creating a script and
placing these commands into it. But I created an issue to the BTS
(http://bts.aiken.cz/view.php?id=446) for implementing this in the
future.

Lukas

> 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