Revision 25226,
272 bytes
checked in by jdreed, 13 years ago
(diff) |
In larvnet:
* Switch to socat because netcat is broken in Natty (Trac: #929)
|
-
Property svn:executable set to
*
|
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" | socat STDIN UDP:"$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.