Re: [CONFUSED NEWBIE] Cron

From: Justin Guerin (jguerin_at_cso.atmel.com)
Date: 11/05/04

  • Next message: Chris Lale: "Re: Debian Commands"
    Date: Fri, 05 Nov 2004 12:54:11 -0700
    To: debian-user@lists.debian.org
    
    

    On Friday 05 November 2004 11:49, Joseph wrote:
    > Hi folks.
    >
    > This is probably very simple stuff, but I'm thoroughly confused. I
    > have an "off-the-shelf" Debian installation provided by my ISP. When
    > I do a ps -ef I get
    > (amongst other things) the following
    > root 195 1 0 Oct28 ? 00:00:01 /usr/sbin/cron
    >
    All fine and normal so far.

    > Now, according to the manual to have cron services I should be running
    > a cron daemon called crond. Lo and behold whereis returns
    > # whereis crond
    > crond:
    >
    Still normal.

    > Now, "cron" is not "crond" I apparently don't even have a "crond"
    > software installed.
    > I added a new line to crontab:
    > 0 0 * * * root /usr/lib/cgi-bin/send_hit_count.cgi
    >
    Oops. Check out the man page for cron and especially crontab(5).

    > 1. send_hit_count.cgi apparently is not being executed. It works
    > interactively, but there are no messages that would indicate that it
    > was executed by cron. What do I need to do, in order to have cron
    > execute send_hit_count.cgi?
    >
    Fix your crontab entry above to:
    0 0 * * * /usr/lib/cgi-bin/send_hit_count.cgi

    > 2. What is /usr/sbin/cron doing there? It seems to forever be in
    > memory, and I do occassionally receive CRON email messages with
    > reports, such as
    > /etc/cron.daily/logrotate:
    > ....
    > ....
    It is waiting until the time comes to start a job. If you happen to do a ps
    while a cron job is running, you'll see CROND.

    > 3. Do I need to install crond?
    > How do I do that?
    >
    It is installed, as evidenced by the cron messages you get.

    > 4. Should I get rid of the cron process documented above?
    >
    Nope.

    > TIA,
    > Joseph

    Justin Guerin

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Chris Lale: "Re: Debian Commands"

    Relevant Pages

    • Re: A little room on /
      ... I don't think crond ... ITYM "cron". ... Under Solaris 9 the function of /etc/cron.d/logchecker has been replaced ...
      (comp.unix.solaris)
    • Re: Broken crontab/anacron
      ... > Should I reinstall cron? ... but have you restarted crond since you made ... you could do either a "service crond restart" or a "service ...
      (Fedora)
    • [CONFUSED NEWBIE] Cron
      ... have an "off-the-shelf" Debian installation provided by my ISP. ... according to the manual to have cron services I should be running ... a cron daemon called crond. ... execute send_hit_count.cgi? ...
      (Debian-User)
    • Re: How to make a script run every 10 minutes?
      ... I am using ManDrake 9.1. ... Linux distributions that comes out of the box without the cron daemon ... ("please tell me if there is any processes with the command name 'crond' ...
      (comp.os.linux.misc)
    • Re: PHP and cron jobs
      ... except for when I need to update the awards via cron ... cron runs as the effective user id of the name of the crontab file. ... run the cron job as user 65534. ...
      (comp.lang.php)