b2ap3_thumbnail_33091695.jpg

 

Setting up the Cron

 

goto

 

 /var/spool/cron/crontabs 

 

Edit the file root using

"vi root"

 

Press I to insert

 


Insert the following code

 

29 23 * * 1 /vmfs/volumes/datastore1/ghettoVCB-master/ghettoVCB.sh -a

 

this will run the above script every Monday at 11.29am

 

 

When ESXI reboots you will need to reinsert the code into Crontab , so you need to automate this

 

vi /etc/rc.local.d/local.sh

 

Insert the following just above Exit 0

 

/bin/kill $(cat /var/run/crond.pid)
/bin/echo "29 23 * * * /vmfs/volumes/datastore1/ghettoVCB-master/ghettoVCB.sh -a" >> /var/spool/cron/crontabs/root
/usr/lib/vmware/busybox/bin/busybox crond

 

Save using

:wq