Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2010
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ip=$(lynx -connect_timeout=5 -read_timeout=5 -dump -nolist http://ipid.shat.net/iponly/ 2> /dev/null)
  4.  
  5. if [ "x$ip" = "x" ]; then
  6.     ip="ERROR";
  7. fi;
  8.  
  9. echo $ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement