Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-10-2012, 01:23 AM   #1
rob.dejonge
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").
When i run the script from the command line in an interactive shell, the warnings do not show up. Only when run from GeekTool.

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
rob.dejonge is offline   Reply With Quote
Old 12-03-2012, 10:43 AM   #2
lhelms
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.
lhelms is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 01:14 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.