Re: [OpenIndiana-discuss] how to set variables in crontab

2015-01-15 Thread Jonathan Adams
Yeah, I agree with Jim. I always put logic and pipes (except to devnull) into the script, usually in a folder called "/backups" ... :) It allows me to test the scripts as well, or change the logic without modifying the crontab. Jon On 15 January 2015 at 07:04, Jim Klimov wrote: > On 15 Januar

Re: [OpenIndiana-discuss] how to set variables in crontab

2015-01-14 Thread Jim Klimov
On 15 January 2015 03:01:56 CET, Harry Putnam wrote: >WHen I try to set anything other than strict crontab entries cron >refuses my edited crontab. Things like PATH or mailto, any kind of >var=value will cause it to be rejected. > >The most recent error is apparently coming from trying to use the

[OpenIndiana-discuss] how to set variables in crontab

2015-01-14 Thread Harry Putnam
WHen I try to set anything other than strict crontab entries cron refuses my edited crontab. Things like PATH or mailto, any kind of var=value will cause it to be rejected. The most recent error is apparently coming from trying to use the date command like this * * * * * somecmd > some-$(date