|
|
#1 |
|
Prospect
Join Date: Nov 2012
Posts: 1
|
Perl locale warning from GeekTool
Hi,
I run GeekTool to keep my eye on a number of things that run on my Mac mini. One of the scripts I run from GeekTool is in perl, and each time it runs I find the following messages in my syslog .... Code:
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: perl: warning: Setting locale failed.
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: perl: warning: Please check that your locale settings:
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_ALL = (unset),
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_MONETARY = "en_TH",
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_NUMERIC = "en_TH",
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_MESSAGES = "en_TH",
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_COLLATE = "en_TH",
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_CTYPE = "en_TH",
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LC_TIME = "en_TH",
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: LANG = "en_TH"
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: are supported and installed on your system.
Nov 10 14:12:20 hostname-macmini [0x0-0x1c01c].org.tynsoe.geektool3[279]: perl: warning: Falling back to the standard locale ("C").
I've tried entering export settings into my .profile and .cshrc but those don't seem to be read when GeekTool runs the script. Any suggestions? thanks, Rob |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Dec 2012
Posts: 1
|
The only think that I can think of is 'wrapping' GeekTool in a wrapper in a shell script which then sources your profile and then runs the GeekTool.
How are you running when not running it from the command line? Via cron? If so, then definitely wrap it and then run the wrapper from cron. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|