LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-12-2011, 09:51 AM   #16
sburnay
LQ Newbie
 
Registered: Sep 2011
Location: Lisbon, Portugal
Distribution: Ubuntu, CentOS & SUSE
Posts: 29

Rep: Reputation: Disabled
I've solved it by...


Hey!

I solved my issue by editing the crontab using 'crontab -e' instead of using an editor (nano in my case) upon the '/etc/crontab' file.

Apparently, from what I've seen in other posts/forums, those are two different files (something I find strange/conusing and prone to misinterpretation among non-experts like myself.
 
Old 09-12-2011, 08:26 PM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Its fairly simple actually:

Each user (inc root) has their own crontab (optionally; if they create one).
The 'system' also has a separate one (the ones we said earlier ie /etc/crontab and crontabs called from there).

When you edit your personal crontab, always use

Code:
crontab -e
as this create a temp file for you to edit, then when you exit the editor, it copies it to the correct location eg /var/spool/cron/crontabs/<yourname> AND notifies the cron daemon to re-read that file.

http://adminschoice.com/crontab-quick-reference
 
1 members found this post helpful.
Old 09-13-2011, 08:19 AM   #18
sburnay
LQ Newbie
 
Registered: Sep 2011
Location: Lisbon, Portugal
Distribution: Ubuntu, CentOS & SUSE
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Each user (inc root) has their own crontab (optionally; if they create one).
It makes sense.

I'll keep this link
http://adminschoice.com/crontab-quick-reference
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
STRANGE:mailserver receives mails but is not able to send mails outside nics Linux - Server 1 05-04-2007 12:44 AM
Sendmai can send mails but unable to receive mails satimis Linux - Server 2 02-15-2007 09:22 AM
Silencing Crontab Mails jon_k Linux - Software 3 10-03-2004 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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