LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-08-2011, 11:16 AM   #1
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Rep: Reputation: 15
Thumbs down cron-tab issue(Task scheduling)


I used the cron-tab to run the rails's server 24 hours for my application by issuing the following command in terminal
crontab -3(To open the cron-tab terminal) and then
* * * * * OSV/OpenStreetView/script/server

Similarly i tried to run server for the django application by issuing the command in same terminal below the above command as

* * * * * djproject/python manage.py runserver

Here the rails server is working fine but django application not .Why?
Even the syntax of both is same

Thanks
 
Old 04-08-2011, 12:36 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
crontab

I know nothing about these applications, but I hope you understand that what this will do is start a new instance of each of these programs every minute, forever! OR at least until one instance detects or steps on another, or the table or memory fill up and things start to crash.
 
Old 04-09-2011, 12:29 AM   #3
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Original Poster
Rep: Reputation: 15
Thanx wpeckham but it didnt help me.
please somebody help who know the solution of this problem.

thanks
 
Old 04-09-2011, 01:15 AM   #4
mayursingru
Member
 
Registered: Nov 2010
Location: Pune
Distribution: CentOS
Posts: 51

Rep: Reputation: 5
Hi amritpalpathak,
Try this "* * * * * root djproject/python manage.py runserver". And wpeckham seems to have given the exact solution.



Regards,
Mayur Singru
 
Old 04-10-2011, 04:20 AM   #5
amritpalpathak
Member
 
Registered: Feb 2010
Posts: 116

Original Poster
Rep: Reputation: 15
Again it didn't work.The content of cron-tab file are


* * * * * root djproject/python manage.py runserver
* * * * * OSV/OpenStreetView/script/server
The rails'server working fine but django' not working

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron - how to give priority to a task running in cron.daily? MeeLee Linux - Newbie 3 11-09-2010 08:41 AM
scheduling task csegau Linux - Newbie 2 10-12-2009 01:43 AM
Task Scheduling on linux antivirus Linux - Server 6 02-27-2007 07:48 AM
How To Create A Cron Tab/Task? Harpo Linux - Newbie 4 01-07-2007 01:36 PM
Task Scheduling jeffkjo Linux - Software 4 12-02-2004 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration