![]() |
at and cron not working
both atd and crond are running but neither works for me.
what do I do when I run at it shows the process in the list but then when the time of running the program passes off it doesn't show anything in the list Please help. |
Maybe some more details will be useful. For example, which is the command issued in the at job? Can you try something as simple as
Code:
at now + 1 minuteCode:
cat /tmp/testfile |
Hey this does display the correct thing but when i say
at now + 1 minute at>/usr/bin/gedit it doesn't start |
Ok. If the above test was successfull, it means that at is working and the atd daemon is running. Maybe a simple test like this works with cron, too. The problem resides in the command you issued inside the jobs. In your example /usr/bin/gedit cannot work simply because at jobs don't have any DISPLAY assigned, that is they are meant to work as non-interactive jobs. This implies that no graphical application can be run from at or cron jobs.
Actually, this is not quite true, because with a little or great effort (depending on the purpose and conditions of the job) you can try to assign a DISPLAY automagically. But this is another story... Regarding the at job with /usr/bin/gedit, please try to issue Code:
mailCode:
cannot open display: (null)Hope this will help! :) |
| All times are GMT -5. The time now is 03:00 AM. |