Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. CMD_CHECK=`df -Ph /mnt/adtracker_eps_adds/ | tail -n1 | awk '{print $4}' | sed 's/G//g'`
  2. echo $CMD_CHECK
  3.  
  4. if [${CMD_CHECK} -lt 4.0] ; then
  5. echo "Were dying biatch"
  6. else
  7. echo "all goooood in da hooood"
  8. fi
  9.  
  10.  
  11. HINT: Check_cmd will return 3.0 at the moment....
  12. That if allways goes to else though, why? Typecasting?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement