Hello, If I don't have the three first lines, the log give
newtask: exec of /var/sge/spool/execd/wolfsbane/job_scripts/2016385 failed: No such file or directory When making the iconv I have no difference at all. I tried using LienFr and LienFr2 with the same result. Regards Hercule 2013/5/23 Platonides <platoni...@gmail.com> > On 23/05/13 00:38, Hercule Hercule wrote: > > Hello, > > > > I deleted one of my script, and try to recreate it. But I now have an > > encoding issue when I run it with SGE. I searched a solution during all > > this evening and can't find any idea to solve it. I hope one of you will > > be able to help me. > > > > I created the file /home/hercule/batch/LienFr.sh with this content : > > > > #-*- coding: utf-8 -*- > > #!bin/bash > > #! /usr/bin/python > > These shebangs are crazy. You would want just "#!/bin/bash" as the first > line. > > > > #$ -l h_rt=1:30:00 > > #$ -l virtual_free=500M > > #$ -l arch='*' > > #$ -m as > > #$ -o /home/hercule/logs/LienFr.log > > #$ -j y > > #$ -wd /home/hercule/ > > python /home/hercule/template.py "Lien" "Lien/Conversion automatique" > > -cat:"Page utilisant Lien pour un article existant" -summary:"[Bot] : > > transformation de liens avec le modèle {{Lien}} en lien interne, suite à > > la création de l'article correspondant" -assubst -pt:0 -always > > mutt -s "Fin de LienFr" hercule < /home/hercule/logs/LienFr.log > > > > > > When I simply run /home/hercule/batch/LienFr.sh in the terminal the > > result is correct : > > > http://fr.wikipedia.org/w/index.php?title=Uttar_Pradesh&diff=93370887&oldid=93370870 > > > > But when I use the command line > > qcronsub -N LienFr /home/hercule/batch/LienFr.sh > > > > I have a problem with the summary : > > > > > http://fr.wikipedia.org/w/index.php?title=Uttar_Pradesh&diff=93370948&oldid=93370932 > > > > Do you know how to solve this ? > > > > Regards > > > > Hercule > > Seems the string was converted to utf-8 twice. What did you use to edit > the file? > > Try converting it with iconv: > iconv -f utf-8 -t iso-8859-1 < LienFr.sh > LienFr2.sh > > > > _______________________________________________ > 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