Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256824

Re: questions about cron.daily

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: questions about cron.daily
Date 2023-04-07 00:50 +0200
Message-ID <GhGAx-gn1-5@gated-at.bofh.it> (permalink)
References <Ghw89-9TL-1@gated-at.bofh.it> <GhzSp-ceS-3@gated-at.bofh.it> <GhAOt-cNY-1@gated-at.bofh.it> <GhAY9-cRA-7@gated-at.bofh.it> <GhDt1-et2-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu 06 Apr 2023 at 12:28:05 (-0700), Fred wrote:
> On 4/6/23 09:44, Pierre Frenkiel wrote:
> > 
> > crontab -l
> > 
> > On Thu, 6 Apr 2023, Fred wrote:
> > > I also would like to know when cron.daily scripts run.  Greg's
> > > command does not appear to reveal the time for that script.  I
> > > ran Greg's command and got the same result.
> 
> fred@ragnok:~$ crontab -l
> no crontab for fred
> 
> root@ragnok:/home/fred# crontab -l
> no crontab for root

Users (including root) write their crontabs anywhere they like,
typically in a directory like ~/.cron/. They then have to be installed
with crontab, which copies them into /var/spool/cron/crontabs/.
Those are the files that crontab -l lists. Why? Because cron isn't
going to poke around in your home directory looking for a crontab
there. It wants them somewhere it has control over.

The system crontab is different, and is found in /etc/. It is an
active file, and doesn't require any installing. It also has to
contain an extra field: the user under which each item should be
run—usually, but not always, root. Other parts of the system can
also have their own crontabs, with similar properties, which are
found in /etc/cron.d/.

Cheers,
David.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

questions about cron.daily coreyh@free.fr - 2023-04-06 13:40 +0200
  Re: questions about cron.daily Greg Wooledge <greg@wooledge.org> - 2023-04-06 13:50 +0200
  Re: questions about cron.daily Andy Smith <andy@strugglers.net> - 2023-04-06 17:40 +0200
    Re: questions about cron.daily Fred <fred@blakemfg.com> - 2023-04-06 18:40 +0200
      Re: questions about cron.daily Pierre Frenkiel <frenkiel@gmail.com> - 2023-04-06 18:50 +0200
        Re: questions about cron.daily "Thomas Schmitt" <scdbackup@gmx.net> - 2023-04-06 19:10 +0200
          Re: questions about cron.daily Alexis Grigoriou <alexis@nanoid.net> - 2023-04-06 20:30 +0200
        Re: questions about cron.daily Fred <fred@blakemfg.com> - 2023-04-06 21:30 +0200
          Re: questions about cron.daily David Wright <deblis@lionunicorn.co.uk> - 2023-04-07 00:50 +0200
            Re: questions about cron.daily Greg Wooledge <greg@wooledge.org> - 2023-04-07 01:00 +0200
              Re: questions about cron.daily <tomas@tuxteam.de> - 2023-04-07 07:10 +0200
                Re: questions about cron.daily Alex King <alex@rimuhosting.com> - 2023-04-08 02:20 +0200
                Re: questions about cron.daily "Andrew M.A. Cater" <amacater@einval.com> - 2023-04-08 11:10 +0200
                Re: questions about cron.daily Michel Verdier <mv524@free.fr> - 2023-04-08 11:20 +0200
                Re: questions about cron.daily Greg Wooledge <greg@wooledge.org> - 2023-04-08 14:40 +0200
                Re: questions about cron.daily Max Nikulin <manikulin@gmail.com> - 2023-04-08 17:20 +0200
                Re: questions about cron.daily Kushal Kumaran <kushal@locationd.net> - 2023-04-08 17:20 +0200
                Re: questions about cron.daily Max Nikulin <manikulin@gmail.com> - 2023-04-08 19:00 +0200
                Re: questions about cron.daily Michel Verdier <mv524@free.fr> - 2023-04-09 10:00 +0200
                Re: questions about cron.daily Max Nikulin <manikulin@gmail.com> - 2023-04-11 11:20 +0200
                Re: questions about cron.daily Michel Verdier <mv524@free.fr> - 2023-04-09 10:00 +0200
              Re: questions about cron.daily Richard Hector <richard@walnut.gen.nz> - 2023-04-07 18:00 +0200
              Re: questions about cron.daily Anssi Saari <as@sci.fi> - 2023-04-07 18:00 +0200
                Re: questions about cron.daily Cindy Sue Causey <butterflybytes@gmail.com> - 2023-04-07 23:50 +0200
              Re: questions about cron.daily David Wright <deblis@lionunicorn.co.uk> - 2023-04-09 18:10 +0200
                Re: questions about cron.daily zithro <slack@rabbit.lu> - 2023-04-09 21:50 +0200
                Re: questions about cron.daily David Wright <deblis@lionunicorn.co.uk> - 2023-04-10 03:30 +0200
                Re: questions about cron.daily davidson <davidson@freevolt.org> - 2023-04-10 04:30 +0200
                Re: questions about cron.daily Michel Verdier <mv524@free.fr> - 2023-04-10 08:40 +0200
                Re: questions about cron.daily David Wright <deblis@lionunicorn.co.uk> - 2023-04-11 05:50 +0200
                Re: questions about cron.daily zithro <slack@rabbit.lu> - 2023-04-10 17:50 +0200
                Re: questions about cron.daily David Wright <deblis@lionunicorn.co.uk> - 2023-04-11 05:50 +0200
      Re: questions about cron.daily Tom Furie <tom@furie.org.uk> - 2023-04-06 19:00 +0200
      Re: questions about cron.daily Michel Verdier <mv524@free.fr> - 2023-04-06 19:10 +0200
      Re: questions about cron.daily Greg Wooledge <greg@wooledge.org> - 2023-04-06 19:50 +0200
      Re: questions about cron.daily Stefan Monnier <monnier@iro.umontreal.ca> - 2023-04-06 19:50 +0200
      Re: questions about cron.daily davidson <davidson@freevolt.org> - 2023-04-06 23:30 +0200
        Re: questions about cron.daily ken@openmbox.net - 2023-04-07 02:20 +0200
          Re: questions about cron.daily Tom Furie <tom@furie.org.uk> - 2023-04-07 02:30 +0200
            Re: questions about cron.daily Dan Ritter <dsr@randomstring.org> - 2023-04-07 03:50 +0200

csiph-web