Environment variables for Crontab


Recommended Posts

Running flexget (1.0r3016) I get these lines in my flexget.log file:

2012-07-08 18:20 WARNING  cron_env                      Your cron environment has different filesystem encoding (ANSI_X3.4-1968) compared to your terminal environment (UTF-.
2012-07-08 18:20 WARNING  cron_env                      Your current cron environment results filesystem encoding ANSI_X3.4-1968 which supports only ASCII letters in filenames.

I'm a linux noob and nothing I've found online seems to work. Can someone point me in the right direction to change the crontab environment variables in unraid please.

 

Cheers

 

Eric

Link to comment

Apologies for bumping, but does anyone have any ideas.

 

The issue is recognised by flexget's developers

http://flexget.com/ticket/801#

 

but the workarounds suggested aren't working for me.

 

I've tried:

*/<whatever> * * * *    cd ~/flexget/ && /usr/bin/env LANG="en_CA.utf8" ./bin/flexget --cron

(with appropriate paths) but I get an error in the syslog at boot for this line and the cron job doesn't run so I presume that Unraid's cron doesn't like the syntax.

 

I've also tried calling a script from cron that sets the environment variable

LANG=en_US.utf8

 

That seems to work sometimes but not all.

 

Any help would be gratefully received.

 

This is using 5.0 rc4

 

Cheers

 

Eric

Link to comment
  • 1 month later...
  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.