Das Problem liegt bei netcat. Nach langer Suche bin ich auf folgendes gestossen:
https://bugs.launchpad.net/ubuntu/+source/netcat-openbsd/+bug/544935 womit -------------------------------------------------------------------------------------------------------------- #!/bin/sh server=localhost port=9090 playerID=$(printf "player id ?\nexit\n" | nc -q 1 $server $port | cut -d ' ' -f 4 | sed 's/%/%%/g') playerStatus=$(printf "$playerID power ?\nexit\n" | nc -q 1 $server $port | cut -d ' ' -f 3) -------------------------------------------------------------------------------------------------------------- und es funktioniert. dachwasser -- dachwasser ------------------------------------------------------------------------ dachwasser's Profile: http://forums.slimdevices.com/member.php?userid=41925 View this thread: http://forums.slimdevices.com/showthread.php?t=83738 _______________________________________________ slimserver-de mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/slimserver-de
