source: trunk/debathena/debathena/larvnet/debian/larvnet-wrapper @ 25226

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 *
RevLine 
[23126]1#!/bin/sh
2
3servers=$(hesinfo larvnet sloc)
4port=49153 # aka "larvnet"
5hostname=$(hostname --fqdn)
6arch=$(machtype -c)
7set_busy() {
8  for s in $servers; do
[25226]9    printf "%d%s\0%s\0" "$1" "$hostname" "$arch" | socat STDIN UDP:"$s":"$port"
[23126]10  done
11}
12
13set_busy 1
14"$@"
15set_busy 0
Note: See TracBrowser for help on using the repository browser.