Misc scripts
From Wikitech
(Difference between revisions)
m |
m (mailqcount) |
||
| Line 10: | Line 10: | ||
ALLNG=/usr/local/dsh/node_groups/ALL | ALLNG=/usr/local/dsh/node_groups/ALL | ||
if [ -r $ALLNG ]; then for host in $(<$ALLNG); $host() { ssh $0 $* }; fi | if [ -r $ALLNG ]; then for host in $(<$ALLNG); $host() { ssh $0 $* }; fi | ||
| + | |||
| + | * count stuff in mailq : | ||
| + | $ /home/wikipedia/bin/mailqcount | ||
| + | # of messages: 1584 | ||
| + | # of errors : 1770 | ||
| + | # of rcpt-to : 1790 | ||
| + | $ | ||
Revision as of 18:36, 24 October 2005
Various misc useful scripts:
- upload a local file to the wiki as an edit:
/home/wikipedia/bin/upload en wikipedia /etc/passwd Wikipedia:Sandbox
- count the number of contributions from a user:
/home/wikipedia/bin/editcount en wikipedia Kate
- make a function for each hostname, so that e.g.: browne ps will connect to browne and perform ps:
ALLNG=/usr/local/dsh/node_groups/ALL
if [ -r $ALLNG ]; then for host in $(<$ALLNG); $host() { ssh $0 $* }; fi
- count stuff in mailq :
$ /home/wikipedia/bin/mailqcount # of messages: 1584 # of errors : 1770 # of rcpt-to : 1790 $