I had a simple Qt program, when running, it shows a simple window with a countdown timer. If you might be interested in the code, please see here.
I had crontab line
* * * * * /home/my-user-name/Documents/bin/program
When executing the comment /home/my-user-name/Documents/bin/program
, the program runs correctly. But it's not invoked by the cron
. I have multiple cron jobs, all run smoothly except this one.
My question is:
Do you have any idea what might cause this? Qt problem? PATH
problem?
I have searched around for cron
, and tried almost all the tips.
root@debian:/opt /ldoce5# myvar=googooli ./ldoce5-bin &
Each program when that run, has a directory with its PID in /proc/, in my example:/proc/21959/
and each process has a file namedenviron
, i use cat environ , i saw the following result: myvar=googooliXDG_VTNR=7ORBIT_SOCKETDIR=/tmp/orbit-mohsenXDG_SESSION_ID=10SSH_AGENT_PID=6196TERMINATOR_UUID (yes a set of variable and you can see myvar) – PersianGulf Sep 08 '14 at 21:00