Advertisement
giochola

If value == 1 restart apache service, change it 0

Oct 31st, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. #!/bin/sh
  2. value=`cat 2.txt`
  3. echo "$value"
  4.  
  5. if [ "$value" -eq "1" ]
  6. then
  7.     echo "0" > 2.txt
  8.     service httpd restart
  9. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement