Yes, when using get_current_user() the returned user name is "sgeadmin". Try changing your script to something like what is proposed in the toolserver wiki: https://wiki.toolserver.org/view/Database_access#PHP
Cheers, Kai
Am 19.02.2013 17:07, schrieb Peter Körner:
Hi
I have two tools that I'd like to convert to SGE now. Both are written in PHP. I tried the following but it didn't work out:
mazder@willow:~$ qcronsub -l h_rt=0:05:00 -l virtual_free=20M \ -l arch=* -l sql-user-m -N mazder-replicate-sequences -m ae \ '/home/mazder/public_html/replicate-sequences/update.php'
I only get a mail, telling me the exit code was 255. No more error messages or stdout/stderr output.
The only reason I could imagine would be that the script tries to read /home/".get_current_user()."/.my.cnf" in order to get mysql username & password. Could it be that this can't work on the running host?
Peter
Am 13.02.2013 16:36, schrieb DaB.:
Hello all,
in the last 3 days I spent a few hours a day to enforce the new rule (starting on willow). I wrote many emails and commented-out even more cron-lines. I learned a few thing doing so (for example some users think that 1 cron-line for a bot is not enough, that some users still uses our old phoenix and newtask programs, and some users seems to do cron-task-sharing…). Until now nobody lost his account, but I killed all misbehaving bots. The load on willow is now appreciable lower than before (the rebooted helped there too of course). It's a more or less boring task and you would REALLY help me if you convert your stuff to SGE yourself, before I kill and disable your bot. If you find that your bot was disabled you are allowed to re-enable it IF you convert it to SGE FIRST! Don't make me find a bot I disabled before running without SGE – you and I would hate that.
To say something positive: I found also bots using SGE (few, but I found).
Sincerely, DaB.
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