I am trying to run a sh script using cron. This script requires a display.
I have tried:
# Xvfb display
/usr/bin/Xvfb :10 -ac -screen 0 1024x768x24 &
41 18 * * * /bin/sh /path/to/script/script.sh > /path/to/log/log.log 2>&1
Nothing happened and the log.log was not created.
Second try:
43 18 * * * <user> export DISPLAY=:10 /bin/sh /path/to/script/script.sh > /path/to/log/log.log 2>&1
Same result no log file.
(ubuntu) CMD (export DISPLAY=:10 /bin/sh /ibc.paper/twsstart.sh > /crontry.log 2>&1) Jun 14 18:43:01 CRON[1809]: (CRON) info (No MTA installed, discarding output)
I have been trying all the things I could think of but nothing works.
Can someone tell me what to check?