diff options
Diffstat (limited to 'sh/nc_serv.sh')
-rwxr-xr-x | sh/nc_serv.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sh/nc_serv.sh b/sh/nc_serv.sh index ddf105f..a9cab32 100755 --- a/sh/nc_serv.sh +++ b/sh/nc_serv.sh @@ -1,8 +1,9 @@ #!/bin/sh -while true -do +ret=0 +while [ $ret -eq 0 ]; do nc -l -p 6667 + ret=$? echo "Connection closed" - echo "--------------------------------------------------------------------------------------------" + echo "--------------------------------------------------------------------------------------------" done |