install wkhtmltopdf and execute it from shell script

Install over ubuntu 14.04

sudo apt-get update
sudo apt-get install xvfb libfontconfig wkhtmltopdf


xvfb-run wkhtmltopdf google.pdf

create file at bin folder

sudo nano /usr/local/vestacp/bin/


xvfb-run wkhtmltopdf <<url>> <<destination file name>>
echo “pdf is generated”


make is self execute ,give permission as below

chmod a+x /usr/local/vestacp/bin/

open cron editor or UI

  • * *  * * */5 sudo /usr/local/vestacp/bin/ >> ./log.log

Leave a Reply

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