var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Pico etc/crontab VS crontab -e
I have been searching for an answer on this for a couple of days and have yet to find one.
I am running a box with Centos.
If I Pico etc/crontab I get this type of output;
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
If I crontab -e I get this type of output;
44 21 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
I am taking it crontab using -e is not the same file as etc/crontab?
I really have tried to search for this answer online, so, any input from WHT members would be great.
take a look at
man 5 crontab
The man page like Slidey suggested does explain this but incase you are unable to see, crontab -e will adjust the current user or the specified users crontab, whereas /etc/crontab is the root crontab.
If you are logged in as root and execute crontab -e it will edit /var/spool/cron/root
AdminGeekZ.com Infrastructure Management
, Web Application Performance,
. System Automation.
WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
Contact us for quote: [email protected]
this will set pico as your default editor..
I cant remember the details, but I just remember that you are not supposed to do it that way =)
Just for clarity's sake, you're noticing two differences: One, you're in a different editor, as pico is not the system's default editor. Two, you're editing different crontabs -- the system's (pico /etc/crontab) and the user's (crontab -e, or /var/cron/tabs/$USER).
One thing to add to the discussion, make sure you use pico -w instead of just pico. Word-wrap can cause headaches if it's unexpected. On the other hand, you could use a real editor.