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.
I'm trying to find a way to get a scheduled job to open up in an xterm window every day. I've used Cron enough, and I've tried a few different methods of this, but no matter how I try it the job will always run in the background. So, I need to find out of there's a way to schedule a job and have it open up and run in an xterm window. The system I'm attempting this on is a Fedora 4 system.
It seems to me that another way to do this would be to have a logged-on user running a scheduler/alarm-clock program within his own session. If the session remained logged-on ...
In order to have an app appear in X without being run by the actual user, you will have to set your DISPLAY varible.
Thanks Gort32, I'll give this a shot. Sounds like it may do what I'm looking for.
Quote:
It seems to me that another way to do this would be to have a logged-on user running a scheduler/alarm-clock program within his own session.
This is what we're doing now, and it's having some strange issues. So, as a way to test this, I wanted to have the OS fire things off intead of a scheduler.
In order to have an app appear in X without being run by the actual user, you will have to set your DISPLAY varible.
Ok, still no luck with this. If I set up a script and run it manually, this works great, and I can control where the xterm shows up.
However, setting it up to run automatcially through Cron will result in nothing showing up. It runs, according to the logs.. but the xterm window will not show up using this method.
So, back to the drawing board for now.
Any other suggestions on how to get a terminal or xterm window to open using Cron (or something similar)?
xhost + tells me that access control is disabled and that clients can connect from any host. However, still no luck in getting Cron to spawn a new terminal or xterm window. Again, the job seems to run, but nothing will show up on screen.
I know this is by design with Cron, but it sure would be nice if there was an option to run a scheduled job in a terminal window to see the results in real time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.