LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-30-2008, 04:58 PM   #31
grande25
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Original Poster
Rep: Reputation: 15

Is there an easier way? I don't even know anything about this and now I'm creating partiions? How do I make cron work? Why does it insist on deleting my edits after reboot? where is the easy button? jeeeeeezzz
 
Old 10-30-2008, 05:53 PM   #32
grande25
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Okay, so the problem is that I have my cron program running from a tmpfs so when I reboot it wipes whatever I had saved in when i used crontab -e. That completely defeats the purpose of even having Cron.

How do I get my cron running so that it saves the info from crontab -e so that it will always run what i want it to? Do i have to partition? How do i do that?
 
Old 10-30-2008, 06:12 PM   #33
grande25
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Okay, When I run crond from root it runs the /etc/cron.d/mycronfile

Now how do i make it do this without having to type "crond" ??
 
Old 10-30-2008, 07:16 PM   #34
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Obviously a tmpfs is temporary, so it will get wiped.
That's normally just used for txfrs etc.
The crond daemon is normally started a boot as part of the boot process. Its always running on a normal system.
 
Old 10-30-2008, 11:27 PM   #35
grande25
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
Obviously a tmpfs is temporary, so it will get wiped.
That's normally just used for txfrs etc.
The crond daemon is normally started a boot as part of the boot process. Its always running on a normal system.
When I do ps -ef | fgrep crond I get this:

root 1851 1831 0 22:20 ttyp0 00:00:00 fgrep crond

when I do crond and ps -ef | fgrep crond I get this

root 1855 1 0 22:23 ? 00:00:00 crond
root 1857 1831 0 22:23 ttyp0 00:00:00 fgrep crond


Also, when I run crond it will run a cron file that I have saved to my /etc/cron.d

Any ideas? Why isn't crond running by itself without me telling it with a "crond" at the root?

I do have a /etc/rc.d/crond file that is run from the rc.conf file at startup... I'll post that script tomorrow when I get some more time.

thanks..

Last edited by grande25; 10-30-2008 at 11:38 PM.
 
Old 11-02-2008, 01:42 AM   #36
grande25
LQ Newbie
 
Registered: Oct 2008
Posts: 29

Original Poster
Rep: Reputation: 15
I ended up finding a file called /etc/conf/S80local.sh and when I looked in that file it said, "##this file will be run at the end of boot".

So I entered "/etc/rc.d/crond start" in the first line after the "##this file..."

And now it does what I want it to. Starts cron after bootup and runs the script I need it to run every few minutes or so.

I'm so happy
 
  


Reply

Tags
cron, help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
about cron job yadava Linux - Newbie 2 08-25-2008 01:07 AM
at vs cron job mokku Solaris / OpenSolaris 2 05-16-2008 08:48 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
cron job thesnaggle Linux - Newbie 1 09-19-2003 11:47 AM
Cron job T-Rex Linux - Newbie 1 09-26-2001 12:28 PM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration