Fedora Linux Support Community & Resources Center
  #1  
Old 12th July 2012, 06:49 AM
spskhokhar's Avatar
spskhokhar Offline
Registered User
 
Join Date: Nov 2011
Location: Punjab, India
Posts: 23
linuxubuntufirefox
screen or crontab?

Need to deploy C++ binary on a server which will run periodically (after some regular time gap).

What will be the best practice?
entry in crontab and write the app output to log file (for monitoring)
OR
create wrapper bash-shell script and run it in screen so that its activity can be monitored and stopped instantly when required.
Reply With Quote
  #2  
Old 12th July 2012, 07:05 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,090
linuxfirefox
Re: screen or crontab?

crontab.

After all, that is what it was designed for.

One advantage is that you will not have to restart the process after a reboot - crontab entries do that.

Another is that you will get a more accurate time interval ( well, relatively more accurate). The time can vary depending on system load, but there will be a less loaded system than a process running continuously (even sleeping takes up memory...)
Reply With Quote
  #3  
Old 12th July 2012, 07:23 AM
spskhokhar's Avatar
spskhokhar Offline
Registered User
 
Join Date: Nov 2011
Location: Punjab, India
Posts: 23
linuxubuntufirefox
Re: screen or crontab?

thanks my friend
Reply With Quote
  #4  
Old 12th July 2012, 07:24 AM
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 752
macossafari
Re: screen or crontab?

Quote:
Originally Posted by jpollard View Post
crontab.

After all, that is what it was designed for.

One advantage is that you will not have to restart the process after a reboot - crontab entries do that.

Another is that you will get a more accurate time interval ( well, relatively more accurate). The time can vary depending on system load, but there will be a less loaded system than a process running continuously (even sleeping takes up memory...)
Concur 100% with jpollard and a mighty +1!!!
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
Reply

Tags
crontab, screen

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab yureka Using Fedora 3 5th July 2012 09:02 AM
crontab help shane2peru Using Fedora 9 3rd October 2007 04:58 AM
crontab: no changes made to crontab Bone Using Fedora 2 15th November 2006 02:56 PM


Current GMT-time: 15:14 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat