Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-25-2008, 05:04 AM
|
#1
|
|
Member
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 277
Rep:
|
crontab : launching applications
I want to launch my application using crontab at some instance of time. It fails to launch, although my application is in /bin (part of PATH environment). But it perfectly opens other applications.
I can open my application from a terminal, byt not from
What might be the problem ?
Last edited by barunparichha; 06-25-2008 at 05:05 AM.
|
|
|
|
06-25-2008, 05:16 AM
|
#2
|
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
What is the application, or type of application ? A screen-oriented one or one with a GUI?
Cron has a more restrictive environment. You have to be more specific in your crontabs with various parameters, such as PATH, etc.
|
|
|
|
06-25-2008, 05:32 AM
|
#3
|
|
Member
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 277
Original Poster
Rep:
|
it has got some GUI too.
|
|
|
|
06-25-2008, 05:43 AM
|
#4
|
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
Then you need to enable the X server to allow that X client to connect, and you needs to set the DISPLAY environment variable or --display option. See this lengthy thread:
http://www.linuxquestions.org/questi...ght=xhost+cron
|
|
|
|
06-25-2008, 08:00 AM
|
#5
|
|
Member
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 277
Original Poster
Rep:
|
cron is able to open applications like xpdf with gui.
But it fails to launch my application.
Although my /var/log/messages shows
"USER root pid 31551 cmd ConMan".
|
|
|
|
06-25-2008, 11:54 AM
|
#6
|
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
You are going to have to enable some logging from your application, or try creating a wrapper script that you call to capture the output or exit status of your ConMan program. I now what a "conman" is, but not your ConMan.
|
|
|
|
06-26-2008, 12:41 AM
|
#7
|
|
Member
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 277
Original Poster
Rep:
|
i am able to launch from script.
but it is not the best way to do so, bcse it requires me to write a script for each application to launch.
So I am searching for a cleaner approach.
|
|
|
|
06-26-2008, 12:59 AM
|
#8
|
|
Senior Member
Registered: Jun 2008
Posts: 2,529
Rep:
|
No you don't. You only need to create one DEBUGGING wrapper script to see what is going wrong. Once you have some error output, and have figured out the problem, you can go back to normal.
The point is, as of now, you've given *no data* - saying "it doesn't work" helps nobody.
You have to collect some meaning error diagnostics (logs, error codes, debug output, anything!).
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:41 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|