source:
trunk/debathena/debathena/larvnet/debian/larvnet-wrapper
@
23126
Revision 23126, 266 bytes checked in by ghudson, 16 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | servers=$(hesinfo larvnet sloc) |
4 | port=49153 # aka "larvnet" |
5 | hostname=$(hostname --fqdn) |
6 | arch=$(machtype -c) |
7 | set_busy() { |
8 | for s in $servers; do |
9 | printf "%d%s\0%s\0" "$1" "$hostname" "$arch" | nc -q0 -u "$s" "$port" |
10 | done |
11 | } |
12 | |
13 | set_busy 1 |
14 | "$@" |
15 | set_busy 0 |
Note: See TracBrowser
for help on using the repository browser.