Cron Scheduling isn't working for me, can someone walk me through this?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cron Scheduling isn't working for me, can someone walk me through this?
I have tried this on Ubuntu, now I'm in Fedora, and it isn' working. This is a very needed feature. Can someone go through the automated launching of liferea, evolution, and firefox everyday at 1145pm? I think I need the exact commands to type in terminal or put in gnome-schedule. Online tutorials aren't helping me fix this.
First I think in need to know in Fedora how to make sure crond is launching.
Thank you very much for the response. I tried launching liferea with
25 01 * * * /usr/bin/liferea
nothing happened. That should be the correct format, Did it early enough so that the daemon would catch it, but nothing. The daemon should start, but is there a way to make sure it is running, or anything else I should look for?
It is a problem about the execution of X applications from crontab: in the cron environment the DISPLAY variable is not defined, so when you launch a X application you will likely get the error "cannot connect to X server". A way to solve this is to launch your application with the env command, like:
Code:
25 01 * * * env DISPLAY=:0 /usr/bin/liferea
assuming you want to launch liferea by connecting to display :0 and assuming you have the proper permissions. You can check the environment variable $DISPLAY and set the display number accordingly.
colucix is right about setting the DISPLAY variable - here are a couple of examples I use here for changing the background image when I'm connected locally (display :0.0) or via VNC (display :1.0):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.