Stackato 2.10.X Linebreaks in environment variables breaks crontab

Posted by jamesf on 2013-09-09 15:39

My app has an env variable containing linebreaks, this makes cron settings break


There's a patch for that!

This will replace the linebreaks with "\n" in the cron env, so if you actually need proper linebreaks in the env in the crontab itself, you will need to decode those manually:

* * * * * perl -e '$ENV{FOO} =~ s,\\\\n,\\n,g; system(@ARGV)' env > $HOME/perl

This patch is also available for 2.10.6 users via kato patch, and can be installed with 'kato patch install'.