Guest User

Untitled

a guest
Nov 21st, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. xdotool search --name chromium key --clearmodifiers ${RELOAD}
  2.  
  3. #!/bin/bash
  4. a=0
  5. RELOAD="CTRL+R"
  6. while (true)
  7. do
  8. wget -q --spider http://google.com
  9. if [ $? == $a ]; then
  10. ps cax | grep chromium
  11. if [ $? == $a ]; then
  12. echo "chrome running"
  13. else
  14. echo "chrome starting"
  15. /home/pi/Desktop/APPLICATION_CALENDAR.SH &
  16. fi
  17. echo $? $a
  18. echo "online1"
  19. xdotool search --name chromium key --clearmodifiers ${RELOAD}
  20. else
  21. echo "offline"
  22. sleep 15s
  23. fi
  24. sleep 20s
  25. done
  26.  
  27. curl http://example.com
  28.  
  29. watch -n60 curl http://example.com
  30.  
  31. 5 * * * * /usr/bin/curl http://example.com > /dev/null 2>&1
  32.  
  33. curl --data='username=myuser&myemail=myemail@provider.tld' http://example.com
  34.  
  35. curl -c ~/cookiejar --data='login=mylog&pass=mypass' http://example.com/login.php
  36.  
  37. curl -c ~/cookiejar http://example.com/private.php
  38.  
  39. $ curl -c ~/cookiejar --data='login=mylogin&pass=mypass' https://example.com/login.php
  40. $ curl -c ~/cookiejar https://example.com/private.php
  41. $ curl -c ~/cookiejar https://example.com/logout.php
  42. $ rm ~/cookiejar
Add Comment
Please, Sign In to add comment