LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-18-2003, 11:45 AM   #1
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
Angry crontab woes -help!


I can't get crontab to work. (call it cron , cronning, whatever, i still can't make it work. )

Details:
I know correct syntax(min, hour, date, month, day of week, user, command)
but I still can't make it work. There is a crontab file, but no crontab file for root or penguin (my login). How do I make one and where do I put it?
Ok, and what about cron.weekly et al? do I save my commands in there or just in the crontab file?

my books are very vague and I can't understand them. googling doesn't help me understand what's wrong.

(Oh, I run Red hat 8.0)

very confused
- titanium_geek
 
Old 06-18-2003, 12:13 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I've had luck with the man page for me

I create the cron's with root, for any user:
crontab -e username (or root)
And simply add the syntax et al (it's vi) save and exit.

cron.weekly is root's crons:
crontab -l root
You can add applications in the respective directory if you would like, I have one in cron.hourly to restore sound levels for ALSA, it works great.



Cool
 
Old 06-18-2003, 02:51 PM   #3
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
and of course, google
linux tutorial cron
 
Old 06-18-2003, 03:57 PM   #4
MrJoshua
Member
 
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Rep: Reputation: 31
I think you are skipping some steps, or editing the files wrong.
 
Old 06-18-2003, 06:26 PM   #5
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Original Poster
Rep: Reputation: 50
ok. I copied cron.allow and cron.deny to cron.d. seems to work now.

before i was googling for cron/crontab. thanks arnold.
ok, now I get making a new crontab. thanks MasterC.
will be more careful now. thanks MrJoshua.

will try again shortly, and let you know how it turned out.

slightly less confused now
- titanium_geek
 
Old 06-18-2003, 06:28 PM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Original Poster
Rep: Reputation: 50
Oh, and how do I make an application to run in whichever directory? (is that a stupid question? sorry.)
can I use cron.weekly as a non root user?

titanium_geek
 
  


Reply


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
new to crontab desbyleo Solaris / OpenSolaris 15 12-16-2004 03:04 AM
Crontab woes hcclnoodles Linux - Software 3 08-18-2004 11:03 AM
crontab -e hoover93 Linux - Newbie 2 08-06-2004 04:05 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM
crontab woes! ifan Linux - Newbie 2 07-16-2003 07:09 AM


All times are GMT -5. The time now is 03:09 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