On Thu, 2004-02-12 at 10:11, Nick Morrison wrote:
#!/bin/sh echo "x;" | nc localhost 2947 | nc localhost 3002 & sleep 0.1 killall -9 nc
The 'killall -9' at the end is a bit evil...
Ah. If your /bin/sh is a real sh shell, you could try:
kill jobs -ls
... instead of the killall line. Note that they are backticks (` and not ').
Nick