casperjs is not work by cron.. so, I maked test shell script
test.sh file ..........
#!/bin/sh
casperjs --version
/etc/crontab file..
40 17 * * * root /home/test/html/run/test.sh >> /home/test/html/run/test.sh.log
.bash_profile file .......
export PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs
If run the console is work.
# sh test.sh
test.sh.log is being recorded.
# cat test.sh.log
1.1.0-beta3
but cron not record..
# ps ax|grep phantomjs
9531 ? Rl 16:47 /usr/local/bin/phantomjs /usr/local/casperjs/bin/bootstrap.js --casper-path=/usr/local/casperjs --cli --version
Thus it shows only and may not be executed.
I can not solve this problem for more than one months.
please.. help me.