Advertisement
Guest User

notestobashscript

a guest
May 24th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # 1. Make bash script that fences current file
  2.  
  3. #! /bin/bash
  4.  
  5. CT=$(date +%s)
  6. echo $CT>time.txt
  7.  
  8. wget txt http://weather.noaa.gov/pub/data/observations/metar/cycles/
  9.  
  10.  
  11. # 2. Make a cron job
  12.  
  13. crontab -e #This will edit your cron configuration file)
  14.  
  15.  
  16. 10 * * * * /usr/bin/directoryofscript/script
  17.  
  18. # 3. Make a MySQL database
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement