Re: [Haifux] A bit of help regarding my upcoming lecture

2006-11-27 Thread Baruch Even
* Shai Shkolnitsky [EMAIL PROTECTED] [061127 10:59]:
 I have found some important thing regarding my upcoming lecture, that would
 help expand it a bit (And maybe make it interesting for non SiL guys). Yet,
 with all the inconsistencies between the distributions I want to make sure
 if that kind of thing is at all valid.
 
 If you would be so kind as to check whether the following files exist on
 your system as well, I would be really grateful.
 
 /usr/lib/cron/run-crons
 /etc/sysconfig/cron
 
 And one more thing, if you have spare time. Please search a dir named
 crontabs or cron/tabs, possibly in /var/spool/ (Permission to the parent
 directory might be privileged).
 
 Please send me your findings with a distribution and version.

Debian etch (the upcoming 4.0)

None of the two directories are there, there is /var/spool/cron/crontabs
as well as /var/spool/cron/{atjobs,atspool}

The cron config in Debian is at:
/etc/crontab (file)
/etc/cron.hourly (dir)
/etc/cron.daily (dir)
/etc/cron.weekly (dir)
/etc/cron.monthly (dir)
/etc/cron.d (dir)

he /etc/crontab file is the root one and runs the
hourly/daily/weekly/monthly jobs. It uses the system cron format that
includes the user which the command should be run as.

The /etc/cron.* are directories where scripts are deposited by packages
or the user and are run at the specified interval. The exact time is
specified by /etc/crontab

/etc/cron.d is a directory where packages and admins can put their own
system crontab formatted files and cron will run them as specified.

This whole arrangement is made so that packages can easily add their own
cron jobs without the need to parse and edit the system cron files, just
add a file and you're done, remove the file on uninstall and everything
just works (or stops worknig in this case).

This is pertty much standard Debian behaviour and should be the same in
Debian sarge (the current stable) and most likely even before that as
well.

Cheers,
Baruch

-
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]



Re: [Haifux] A bit of help regarding my upcoming lecture

2006-11-27 Thread Shai Shkolnitsky

Sorry to bother you once more.
By could you tell me what script the /etc/crontab file runs?

On 11/27/06, Baruch Even [EMAIL PROTECTED] wrote:


* Shai Shkolnitsky [EMAIL PROTECTED] [061127 10:59]:
 I have found some important thing regarding my upcoming lecture, that
would
 help expand it a bit (And maybe make it interesting for non SiL guys).
Yet,
 with all the inconsistencies between the distributions I want to make
sure
 if that kind of thing is at all valid.

 If you would be so kind as to check whether the following files exist on
 your system as well, I would be really grateful.

 /usr/lib/cron/run-crons
 /etc/sysconfig/cron

 And one more thing, if you have spare time. Please search a dir named
 crontabs or cron/tabs, possibly in /var/spool/ (Permission to the
parent
 directory might be privileged).

 Please send me your findings with a distribution and version.

Debian etch (the upcoming 4.0)

None of the two directories are there, there is /var/spool/cron/crontabs
as well as /var/spool/cron/{atjobs,atspool}

The cron config in Debian is at:
/etc/crontab (file)
/etc/cron.hourly (dir)
/etc/cron.daily (dir)
/etc/cron.weekly (dir)
/etc/cron.monthly (dir)
/etc/cron.d (dir)

he /etc/crontab file is the root one and runs the
hourly/daily/weekly/monthly jobs. It uses the system cron format that
includes the user which the command should be run as.

The /etc/cron.* are directories where scripts are deposited by packages
or the user and are run at the specified interval. The exact time is
specified by /etc/crontab

/etc/cron.d is a directory where packages and admins can put their own
system crontab formatted files and cron will run them as specified.

This whole arrangement is made so that packages can easily add their own
cron jobs without the need to parse and edit the system cron files, just
add a file and you're done, remove the file on uninstall and everything
just works (or stops worknig in this case).

This is pertty much standard Debian behaviour and should be the same in
Debian sarge (the current stable) and most likely even before that as
well.

Cheers,
Baruch

-
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]





--
Shai S.

Be wevy wevy quiet, I'm huntin' Penguins
 Steve FUD Jobs


Re: [Haifux] A bit of help regarding my upcoming lecture

2006-11-27 Thread Ilan Aisic

I have here 2 types of Linux systems:  RedHat 9 anc CentOS 4.4 which is
really a RH copycat.
Here's my findings:

On RH 9:
-
[EMAIL PROTECTED] /]# uname -a
Linux tivon1 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386
GNU/Linux
[EMAIL PROTECTED] /]# cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
[EMAIL PROTECTED] /]# cd /usr/lib/cron
/usr/lib/cron: No such file or directory.
[EMAIL PROTECTED] /]# cd /etc/sysconfig/cron
/etc/sysconfig/cron: No such file or directory.
[EMAIL PROTECTED] /]# cd /var/spool/
[EMAIL PROTECTED] spool]# find . -name cron* -print
./cron
./anacron/cron.daily
./anacron/cron.weekly
./anacron/cron.monthly
[EMAIL PROTECTED] spool]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
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

=
On CentOS 4.4:
---
[EMAIL PROTECTED] /]# uname -a
Linux sp.pointer.co.il 2.6.9-34.0.2.EL #1 Fri Jul 7 19:24:57 CDT 2006 i686
i686 i386 GNU/Linux
[EMAIL PROTECTED] /]# cat /etc/redhat-release
CentOS release 4.4 (Final)
[EMAIL PROTECTED] /]# cd /usr/lib/cron
bash: cd: /usr/lib/cron: No such file or directory
[EMAIL PROTECTED] /]# cd /etc/sysconfig/cron
bash: cd: /etc/sysconfig/cron: No such file or directory
[EMAIL PROTECTED] /]# cd /var/spool/
[EMAIL PROTECTED] spool]# find . -name cron* -print
./cron
./anacron/cron.daily
./anacron/cron.weekly
./anacron/cron.monthly
[EMAIL PROTECTED] spool]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
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




On 11/27/06, Shai Shkolnitsky [EMAIL PROTECTED] wrote:


I have found some important thing regarding my upcoming lecture, that
would help expand it a bit (And maybe make it interesting for non SiL guys).
Yet, with all the inconsistencies between the distributions I want to make
sure if that kind of thing is at all valid.

If you would be so kind as to check whether the following files exist on
your system as well, I would be really grateful.

/usr/lib/cron/run-crons
/etc/sysconfig/cron

And one more thing, if you have spare time. Please search a dir named
crontabs or cron/tabs, possibly in /var/spool/ (Permission to the parent
directory might be privileged).

Please send me your findings with a distribution and version.


Thank you for your precious time and cooperation.
--
Shai S.

Be wevy wevy quiet, I'm huntin' Penguins
  Steve FUD Jobs





--
Ilan Aisic
Registered Linux User 8124 http://counter.li.org