I used set to configure LC_ALL and LANG. Now, when I run "set" in the
terminal (from putty) I have

LANG=fr_FR.UTF-8
LC_ALL=fr_FR.UTF-8

The command line "cronie -l" give

LC_ALL=fr_FR.UTF-8
44 11 * * * newtask -p batch /home/hercule/batch/LienHu.sh

and I have no more error when saving.

The command line "tail -f LienHu.sh" give

#!/bin/bash
#-*- coding: utf-8 -*-
#!/usr/bin/python
python /home/hercule/template.py "Ideig" "Ideig/Automatikus törlés"
-cat:"Lapok láthatatlanná vált ideig sablonnal" -summary:"Bot: {{Ideig}}
sablonhívás törlése a cikk létrehozása következtében" -assubst -pt:0
-lang:hu -always
python /home/hercule/template.py "Linkiw" "Linkiw/Automatikus törlés"
-cat:"Lapok láthatatlanná vált linkiw sablonnal" -summary:"Bot: {{Linkiw}}
sablonhívás törlése a cikk létrehozása következtében" -assubst -pt:0
-lang:hu -always
python /home/hercule/template.py "Piroslink" "Piroslink/Automatikus
lecserélés" -cat:"Lapok felesleges piroslink sablonnal" -summary:"Bot:
{{Piroslink}} sablonhívás lecserélése a cikk létrehozása következtében"
-assubst -lang:hu -always
python /home/hercule/template.py "Piroslink*" "Piroslink*/Automatikus
lecserélés" -cat:"Lapok felesleges piroslink sablonnal" -summary:"Bot:
{{Piroslink*}} sablonhívás lecserélése a cikk létrehozása következtében"
-assubst -lang:hu -alwayspython /home/hercule/template.py "Ideig"
"Ideig/Automatikus törlés" -cat:"Lapok láthatatlanná vált ideig sablonnal"
-summary:"Bot: {{Ideig}} sablonhívás törlése a cikk létrehozása
következtében" -assubst -pt:0 -lang:hu -always
python /home/hercule/template.py "Linkiw" "Linkiw/Automatikus törlés"
-cat:"Lapok láthatatlanná vált linkiw sablonnal" -summary:"Bot: {{Linkiw}}
sablonhívás törlése a cikk létrehozása következtében" -assubst -pt:0
-lang:hu -always
python /home/hercule/template.py "Piroslink" "Piroslink/Automatikus
lecserélés" -cat:"Lapok felesleges piroslink sablonnal" -summary:"Bot:
{{Piroslink}} sablonhívás lecserélése a cikk létrehozása következtében"
-assubst -lang:hu -always
python /home/hercule/template.py "Piroslink*" "Piroslink*/Automatikus
lecserélés" -cat:"Lapok felesleges piroslink sablonnal" -summary:"Bot:
{{Piroslink*}} sablonhívás lecserélése a cikk létrehozása következtében"
-assubst -lang:hu -always

Now, I just wait that the cron is launch, and the result is wrong on
hu.wikipedia :
http://hu.wikipedia.org/w/index.php?title=Szerkeszt%C5%91%3AOliv0&diff=12371170&oldid=12371163

I see no error messages anymore, but there is still a problem of encoding
while using cronie

Regards

Hercule

2012/9/24 DaB. <w...@daniel.baur4.info>

> Hello,
> At Monday 24 September 2012 12:46:52 DaB. wrote:
> > I have tried the cronie solutions, (with LC_ALL=fr_FR.UTF-8 on cronie)
> but
> > there is a message when saving :
> >
> > couldn't set locale correctly
> > couldn't set locale correctly
> > cronie: installing new crontab
> >
> > For the export in the script, it fail with message
> >
> > /home/hercule/batch/LienHu.sh: LANG=fr_FR.utf8: n'est pas un
> identificateur
>
> As you can see (the error-message is in French) the export worked somewhere
> :-).
>
> Please notice 4 things:
> -LC_ALL and LANG is not the same (see [1] for details).
> -fr_FR.utf8 is wrong most times, use fr_FR.UTF-8
> -Use "#!/bin/bash" in shell-scripts at the 1 line
> -Please tell us always WHERE something failed (on which box).
>
> Sincerely,
> DaB.
>
> [1] http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html
>
> --
> Userpage: [[:w:de:User:DaB.]] — PGP: 2B255885
>
> _______________________________________________
> Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
> https://lists.wikimedia.org/mailman/listinfo/toolserver-l
> Posting guidelines for this list:
> https://wiki.toolserver.org/view/Mailing_list_etiquette
>
_______________________________________________
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to