[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cronjob in user environment



On Sep 02 14:18 +0200, Steve S  wrote:
> 2) define env vars in the crontab
> 
> It works if I define the env vars as a full path
> 
>     $SOME_VAR=/full/path/1
>     $SOME_OTHER_VAR=/full/path/2
>     10 12 * * */2   su -p - johndoe -c /home/johndoe/foo.sh

Ups, that must read

     SOME_VAR=/full/path/1
     SOME_OTHER_VAR=/full/path/2
     10 12 * * */2   /home/johndoe/foo.sh

best,
steve


Reply to: