Advertisement
Merzavets

Cron jobs in VMware

Mar 17th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. # stolen from http://kb.gtkc.net/adding-a-cron-job-to-vmware-esxi/
  2.  
  3. #  add these lines to /etc/rc.local.d/local.sh
  4. # killing cron process
  5. /bin/kill $(cat /var/run/crond.pid)
  6.  
  7. # adding schedule string to crontab. BTW, excellent cron calc situates here: https://crontab.guru/
  8. /bin/echo '30 1 * * * /vmfs/volumes/datastore2/hp/check_disk.sh > /dev/null 2>&1' >> /var/spool/cron/crontabs/root
  9.  
  10. # starting crond
  11. /usr/lib/vmware/busybox/bin/busybox crond
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement