Add crontab to vmware

Edit file: /var/spool/cron/crontabs/root

39 0 * * * /vmfs/volumes/datastore1/tools/ghettoVCB/start_ghettoVCB.sh -a

Restart crontab job after updating configuration file

After editing the crontab you also need to kill and restart the crond process, which you can do like this:

kill -HUP $(cat /var/run/crond.pid)
/usr/lib/vmware/busybox/bin/busybox crond

Make it persistent

Edit file /etc/rc.local.d/local.sh

/etc/rc.local.d/local.sh
/bin/echo "39 0 * * * /vmfs/volumes/datastore1/tools/ghettoVCB/start_ghettoVCB.sh -a" >> /var/spool/cron/crontabs/root

https://communities.vmware.com/thread/545078

Leave a Reply

Your email address will not be published. Required fields are marked *