Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep problem #10

Open
GoogleCodeExporter opened this issue May 10, 2015 · 1 comment
Open

Sleep problem #10

GoogleCodeExporter opened this issue May 10, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hi, thanks for your useful script !
However I noticed an error concerning the sleep usage.
When gmailchecker is launched via a terminal, an error is displayed saying :
"sleep: intervalle de temps « 120,000000 » incorrect
Saisissez « sleep --help » pour plus d'informations."

Unfortunately, I'm french, so I'll describe you the error displayed above. It's 
telling us that "sleep" isn't well used.

So, I decided to look inside your script and I think it's a yad-relative 
problem. In fact, the INTERVAL variable contains the value 120,000000 so 
"sleep" can't understand it, you ought to set it to 120.000000 instead.

I solved this problem by replacing the last line of your script :
sleep ${INTERVAL:=300} to
sleep ${INTERVAL//,/.}

I don't understand the :=300, but I'm sure you'll find a way to set it back ;)

Original issue reported on code.google.com by boitut...@gmail.com on 2 Jan 2014 at 5:47

@GoogleCodeExporter
Copy link
Author

Thanks for your comment.  I think the problem is the locale on your system.  In 
English, it uses period as decimal point but in French it uses comma.  What do 
you see if you type "locale".  I got this
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I'm not sure why yad uses French locale and bash uses English locale.  Your fix 
works for your situation but won't work for all I think.  I'm not sure how to 
fix this yet so I'll leave the script as is for now.

Tri

Original comment by tri...@gmail.com on 3 Jan 2014 at 1:46

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant