[03:13:12] Why was I banned from #wikimedia-ops and #wikipedia-en? All I did was comment about someone getting banned twice since I got on... [03:13:45] DSquirrelGM: we have no idea, sorry [08:45:23] !log tools.heritage Killed update_monuments job (T244213) [08:45:26] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.heritage/SAL [08:50:17] !log tools.heritage Triggered a manual jsub update_monuments.sh (T244213) [08:50:20] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.heritage/SAL [10:50:14] I want to transfer a file to a tool in toolforge using ssh, something like: `ssh etytree-b.eqiad.wmflabs 'cat bootstrap.sql' | ssh login.tools.wmflabs.org 'cat > bootstrap.sql' ` [10:50:25] the tool is etytree [10:50:34] how do I specify the tool? [10:51:25] you can't Epantaleo. You would need to `become` the tool to have the file in the tool directory [10:51:49] let me double check [10:54:08] Doesn't ssh have a switch to let you specify a remote command to run? [10:57:06] the `become` utility is just a wrapper of `sudo`, so perhaps you could do something like `| ssh login.tools.wmflabs.org 'sudo -u cat > file'` [10:57:20] Epantaleo: ^^^ [10:58:11] you can also use `become` noninteractively [10:58:27] I have a backup script which does `ssh toolforge become $tool mysqldump ...` [11:00:13] oh, right [11:00:47] so Epantaleo something like `| ssh login.tools.wmflabs.org 'become $tool cat > file'` [11:01:23] I think you need to quote the cat > file part again [11:01:31] so that the redirection happens inside the `become` [11:01:35] and not outside [11:02:13] Incidentally, isn't slinging files around like this a fairly common use case that should have a better solution than pipes and IO redirects over SSH? [11:02:44] (something as simple as scp, say) [11:03:19] thank you guys :) [11:03:24] xover: if you don’t need the intermediate sudo, sure [11:03:42] (side note, instead of quoting the redirection it might be easier to use a command to write to the file, e. g. `sponge`) [11:04:00] (so … | ssh toolforge become $tool sponge $file) [11:04:27] noted thanks! [11:06:22] "sftp -s 'sudo -u REMOTE_SUDO_USER /usr/libexec/openssh/sftp-server' REMOTE_USER@HOST" or summat, maybe? [11:22:31] !log tools restarting ferm fleet-wide to account for prometheus servers changed IP (but same hostname) (T238096) [11:22:34] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/SAL [11:22:35] T238096: Toolforge: prometheus: refresh setup - https://phabricator.wikimedia.org/T238096 [12:40:37] !log tools.integraality Deploy latest from Git master: 8977958 (T243780) [12:40:40] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.integraality/SAL [13:50:37] Please block https://wikitech.wikimedia.org/w/index.php?title=Special:Contributions/Dick_balls_cock&offset=&limit=500&target=Dick+balls+cock [13:51:58] curious that we don’t have a blacklist for, um, that username [13:52:24] Pretty sure the general wikis have that. [13:54:19] yeah, just wikitech being separate and doing its own thing I guess [13:55:02] Ladsgroup blocked the vandal [20:50:53] figures, I go looking for that edit count table again and can't find it now :|