[19:34:17] [telegram] @JeanFred links to polls in wudele.toolforge.org do not work, if "?fbclid=" is appended to them. Please, fix it. [19:36:42] [telegram] Anton ... did someone already ask you to create a gadget to move qualifiers around? [19:38:00] [telegram] No. And I personally never faced a need to move them. (re @edoderoo: Anton ... did someone already ask you to create a gadget to move qualifiers around?) [19:38:51] [telegram] the gadget for moving properties works great ... but sometimes (often!) the enddate qualifer is above the startdate qualifier, which looks messy to me [19:40:16] [telegram] I will consider making a tool for this [19:47:06] [telegram] no hurry ... [19:47:28] [telegram] Anybody knows about running cron jobs? I am facing an issue [19:47:49] [telegram] you mean on the tool server? or on your own Linux box? [19:47:58] [telegram] On tool server [19:48:47] [telegram] Sorry if I have mistaken - Related to updation of a wiki page using the tool uploaded in tool server [19:49:42] [telegram] I’d use this tool a lot. (re @Tohaomg: I will consider making a tool for this) [19:50:57] [telegram] Ho on with the question and someone would answer (re @Adithya: Anybody knows about running cron jobs? I am facing an issue) [19:51:03] [telegram] Go on with the question and someone would answer (re @Adithya: Anybody knows about running cron jobs? I am facing an issue) [19:52:13] [telegram] Could it work for rearranging the qualifiers on references? Sometimes we add a new item for an author and I hate to put that after a long list of publication date, publisher, retrieved date, etc,. [19:52:19] [telegram] Isn't it perhaps better to do that via bot every once in a while? (re @edoderoo: the gadget for moving properties works great ... but sometimes (often!) the enddate qualifer is above the startdate qualifier, which looks messy to me) [19:56:02] [telegram] for startdate/enddate sorting it could be a bot job, but I hate to create scripts that mess around with what people edited. You never know if they serve a purpose with their order. But Anton's tool would be perfect to just move around cases you run into..... (re @Thecladis: Isn't it perhaps better to do that via bot every once in a while?) [19:57:22] [telegram] I have recently uploaded a tool named mlwikidbupdate in Wmflabs. It is being present in the location /mnt/nfs/labstore-secondary-tools-project/mlwikidbupdate. I would like to know the cron job that needs to be run inorder to run the file named editcount.py, which is present inside the folder mlwikidbupdate. The cronjob I used was */1 * * * * /usr/bin/jsub -N cron-tools.mlwikidbupdate -once python ~mnt/nf [19:57:24] [telegram] Heh, too bad it is impossible to somehow mark if someone was people edited or not :( (unless ones analises page history) [19:58:47] [telegram] Why do you have ~ after "python" and not / ? (re @Adithya: I have recently uploaded a tool named mlwikidbupdate in Wmflabs. It is being present in the location /mnt/nfs/labstore-secondary-tools-project/mlwikidbupdate. I would like to know the cron job that needs to be run inorder to run the file named editcount.py, which is present inside the folder mlwikidbupdate. The cronjob I used was */1 * * * * /u [20:01:37] [telegram] Actually, I thought there is something that needs to be present before mnt [20:02:22] [telegram] ~ means your home folder, / means root [20:02:35] [telegram] You need root, as you have absolute path [20:03:53] [telegram] Does that mean I need to replace by $HOME? [20:04:02] [telegram] No [20:04:16] [telegram] Just write /mnt instead of ~mnt [20:05:56] [telegram] It didn't work for me. I have actually replaced 0 0 * * * /usr/bin/jsub -N cron-tools.mzmcbride-1 -once -quiet python $HOME/scripts/enwiki/editcount.py with */1 * * * * /usr/bin/jsub -N cron-tools.mlwikidbupdate -once python ~mnt/nfs/labstore-secondary-tools-project/mlwikidbupdate/editcount.py [20:06:15] [telegram] The first i [20:07:27] [telegram] The first cron task is used in English wiki by MzMcbride [20:07:46] [telegram] Can you execute pwd in the directory the script is in? [20:08:18] [telegram] /data/project/mlwikiupdate [20:08:50] [telegram] /data/project/mlwikidbupdate [20:10:30] [telegram] So it should be /data/project/mlsikidbupdate/editcount.py [20:11:04] [telegram] /data [20:11:19] [telegram] So it should be /data/project/mlwikidbupdate/editcount.py [20:18:00] [telegram] I am executing this inside virtual environment. When changing the code to the one given by you, it shows module not found: Wikitools. I have actually installed Python, wikitools inside venv and outside also many times [20:24:03] [telegram] oh. I have a php script I run, but it does not use a container, so for me it is just `0 */6 * * * jstart -N updatenumberofactiveusersaggrukwiki -mem 500m php /data/$ [20:24:03] [telegram] ` [20:24:36] [telegram] oh. I have a php script I run, but it does not use a container, so for me it is just 0 */6 * * * jstart -N updatenumberofactiveusersaggrukwiki -mem 500m php /data//project/basebot/public_html/numberofactiveusersaggr/index.php [20:24:56] [telegram] oh. I have a php script I run, but it does not use a container, so for me it is just 0 */6 * * * jstart -N updatenumberofactiveusersaggrukwiki -mem 500m php /data/project/basebot/public_html/numberofactiveusersaggr/index.php [20:25:49] [telegram] btw do you do this as the user or the tool? [20:27:55] [telegram] In my case cron is added as the tool, I become basebot first (basebot is the name of my tool) [20:29:26] [telegram] I am actually able to update the counts by using python editcount.py but couldn't work with cron. Let me try filing a ticket in Phab [20:30:13] [telegram] It's my bot account that does this (re @Thecladis: btw do you do this as the user or the tool?) [20:30:34] [telegram] I mean which shell account do you use? [20:30:53] [telegram] can you copypaste a few lines from the terminal? [20:35:46] [telegram] I am using Windows [20:36:00] [telegram] WinSCP with Putty [20:38:23] [telegram] that is fine [20:38:51] [telegram] how do you log in to toolforge? [20:39:34] [telegram] do you execute [20:39:36] [telegram] become mlwikidbupdate at any point after that? [21:43:53] [telegram] Er... why would you append that? (re @Tohaomg: @JeanFred links to polls in wudele.toolforge.org do not work, if "?fbclid=" is appended to them. Please, fix it.) [21:45:16] [telegram] facebook adds that automatically (we also used to have issues with that when people tried to share links to the query service UI, see https://phabricator.wikimedia.org/T210139) (re @JeanFred: Er... why would you append that?) [21:46:58] [telegram] It is appended automatically if you give a link in a post or in a message in Facebook. I write wudele.toolforge.org , it is depicted as wudele.toolforge.org , but upon clicking it goes at URL-address http://wudele.toolforge.org?fbclid=someunneededshitfacebookappendedtothislink (re @JeanFred: Er... why would you append that?) [21:48:18] [telegram] 'K, I'll try to cook up a lighttpd rewrite rule (re @Tohaomg: It is appended automatically if you give a link in a post or in a message in Facebook. I write wudele.toolforge.org , it is depicted as wudele.toolforge.org , but upon clicking it goes at URL-address http://wudele.toolforge.org?fbclid=someunneededshitfacebookappendedtothislink) [21:48:38] FB will add them to outbound liniks I guess