Guest User

Untitled

a guest
Jul 8th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1.  #!/bin/bsh
  2. portti=80
  3. arvo=0
  4. while true; do
  5. #arvo=$(nc -z 127.0.0.1 $portti)
  6. nc -z 127.0.0.1 $portti;
  7. if [ "$?" = "1" ]; then
  8.         break
  9. fi
  10. let "portti++"
  11. done
  12. echo "Läpi"
Advertisement
Add Comment
Please, Sign In to add comment