in reply to Re: Perl cron job not running
in thread Perl cron job not running

Hi shmem,

I guess there are different implementations of cron and it depends on that? The one on my system doesn't care about semicolons and executes multiple commands.

Regards,
-- Hauke D

Replies are listed 'Best First'.
Re^3: Perl cron job not running
by shmem (Chancellor) on Jul 20, 2016 at 15:21 UTC

    whipped up a cron line

    */1 * * * * root touch /tmp/foo; touch bar

    and checked /tmp - meh... bar was touched in /root of course :-P

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

      Hi shmem,

      Yeah, I've been using cron more often recently and I've been bitten by stuff like that :-)

      BTW, I noticed that there is a special character that cron does care about: apparently % marks the start of data that will be sent to the command on STDIN (and is converted to a newline after that). I'll have to try and remember that one too...

      Regards,
      -- Hauke D