Talk:Toolserver:User:E
Add topicAppearance
This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.
Sending an email to james _at_ toolserver _dot_ org is the quickest way of communication.
are you sure ~ works in cron on Solaris? /bin/sh doesn't understand that syntax. River
- the command line is accepting
phoenix ~/phoenix-james-aivhelperbot perl /home/james/AIVHelperbot/AIVHelperbot.pl
fine... — E 09:00, 21 July 2009 (UTC)- yes, but does it work in cron? your command-line shell is bash, which does support ~. cron uses /bin/sh instead. River
- The following is what I received from the cron email report:
- yes, but does it work in cron? your command-line shell is bash, which does support ~. cron uses /bin/sh instead. River
Your "cron" job on willow phoenix ~/phoenix-james-abusebot perl /home/james/AbuseBot/AbuseBot.pl produced the following output: launching perl /home/james/AbuseBot/AbuseBot.pl /opt/local/bin/phoenix: line 85: ~/phoenix-james-abusebot.out: No such file or directory /opt/local/bin/phoenix: line 91: ~/phoenix-james-abusebot.out: No such file or directory /opt/local/bin/phoenix: line 96: ~/phoenix-james-abusebot.pid: No such file or directory Failed to launch perl /home/james/AbuseBot/AbuseBot.pl PID 28831 at 2009-07-21 09:00:00 +0000 /opt/local/bin/phoenix: line 106: ~/phoenix-james-abusebot.out: No such file or directory /opt/local/bin/phoenix: line 107: ~/phoenix-james-abusebot.out: No such file or directory
- i tested this, and it seemed to work fine:
0,5,10,15,20,25,30,35,40,45,50,55 phoenix python /home/yourname/whatever/program.py
- you could also use $HOME instead of /home/yourname. what error did you get from my version? River
- I'm getting the following error:
- you could also use $HOME instead of /home/yourname. what error did you get from my version? River
crontab: error on previous line; unexpected character found in line.
- I'm thinking it should conform to the correct syntax for the cron, which should make your version:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * phoenix python /home/yourname/whatever/program.py
Your "cron" job on willow phoenix perl /home/james/AIVHelperbot/AIVHelperbot.pl produced the following output: launching /home/james/AIVHelperbot/AIVHelperbot.pl Successfully launched /home/james/AIVHelperbot/AIVHelperbot.pl PID 28958 at 2009-07-21 09:15:00 +0000 output is appended to perl.out
and
Your "cron" job on willow phoenix perl /home/james/AbuseBot/AbuseBot.pl produced the following output: launching /home/james/AbuseBot/AbuseBot.pl Successfully launched /home/james/AbuseBot/AbuseBot.pl PID 28956 at 2009-07-21 09:15:00 +0000 output is appended to perl.out
- Does this seem to be working to you? Now I have two instances of the bot running (the one from before and the one from just then). Are the two bots meant to be working to the same output file of perl.out? — E 09:19, 21 July 2009 (UTC)
- sorry, the command is still wrong! the name argument is missing. try this:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * phoenix /home/james/aivhelperbot perl /home/james/AIVHelperbot/AIVHelperbot.pl 0,5,10,15,20,25,30,35,40,45,50,55 * * * * phoenix /home/james/abusebot perl /home/james/AbuseBot/AbuseBot.pl
- the new argument specifies the tool name and the logfile. only one copy of a program with a particular logfile will be started at once. River
- (reset indent) It's perfect now, the script has accepted and they are outputting to their own individual output files. I shall monitor them over the next few hours, then cease the reports. Thank you for all of your help River. Much appreciated! — E 09:32, 21 July 2009 (UTC)
Start a discussion about Toolserver:User:E
Talk pages are where people discuss how to make content on MediaWiki the best that it can be. You can use this page to start a discussion with others about how to improve Toolserver:User:E.