Guest User

Untitled

a guest
Oct 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function detect() {
  2.  
  3. traceroute $1
  4. if "$(echo $?)" == "0"; then
  5. echo "$1 est déconnecté à `$2`" >> /home/alpha/test/col
  6. else
  7. echo "$1 est connecté à `$2`" >> /home/alpha/test/col
  8. fi
  9. }
  10.  
  11. detect "burning4rch" $date
Add Comment
Please, Sign In to add comment