Arctis

counter

Feb 12th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. COUNT="/home/plez/.scripts/storage"
  4.  
  5. if [ `cat $COUNT` -le "5" ]; then
  6.     echo $[`cat $COUNT`+1] > $COUNT
  7. elif [ `cat $COUNT` -eq "6" ]; then
  8.     echo $[`cat $COUNT`-6] > $COUNT
  9. fi
  10.  
  11.  
  12. pkill -9  -f '/bin/bash /usr/bin/counter'
  13.  
  14. exit 0
Advertisement
Add Comment
Please, Sign In to add comment