diff options
author | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-01-23 15:37:04 +0100 |
---|---|---|
committer | Bertrand Jacquin (Beber) <beber@setibzh.com> | 2006-01-23 15:37:04 +0100 |
commit | d12bfe2cb7e3f0d490136b2fc772a21ec806368f (patch) | |
tree | 500d22c7bf8d411ba6ed1b14bfc81eaf6b0ed99d /sh | |
parent | More back to home (diff) | |
download | espik-d12bfe2cb7e3f0d490136b2fc772a21ec806368f.tar.xz |
Quit when ^C and not when connection closed
Diffstat (limited to '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 |