Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #write out current crontab
  2. sudo crontab -l > rebootdaily
  3. #echo new cron into cron file
  4. echo "55 9 * * * ifconfig eth1 down" >> rebootdaily
  5. echo "0 10 * * * reboot" >> rebootdaily
  6. #install new cron file
  7. sudo crontab rebootdaily
  8. rm rebootdaily
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement