PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Weird cron behavior
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Weird cron behavior

Réponse
 
LinkBack Outils de la discussion
Vieux 05/08/2007, 15h30   #1
Frank McCormick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Weird cron behavior


I left my machine on overnight ( I usually don't ) and got these
messages in my mail this morning:

From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@debian> sudo aptitude update
Date: Sun, 05 Aug 2007 05:10:01 -0400

Hit ftp://gulus.usherbrooke.ca sid Release.gpg
Get:1 ftp://gulus.usherbrooke.ca sid/main Translation-en_CA
Ign ftp://gulus.usherbrooke.ca sid/main Translation-en_CA
Get:2 ftp://gulus.usherbrooke.ca sid/non-free Translation-en_CA
Get:3 http://debian-mirrors.sdinet.de sid Release.gpg [189B]
Ign http://debian-mirrors.sdinet.de sid/main Translation-en_CA
Ign ftp://gulus.usherbrooke.ca sid/non-free Translation-en_CA
Get:4 ftp://gulus.usherbrooke.ca sid/contrib Translation-en_CA

//big snip //

Hit ftp://gulus.usherbrooke.ca sid/main Sources
Fetched 6235B in 1s (3375B/s)
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Building tag database...
Deleting obsolete downloaded files

It seems cron ran once a minute starting at 5:00 AM and
ending at 5:59 AM .....apparently doing the same thing over and over.

I havn't added or changed anything --
I am sunning Sid

Anybody have any ideas ?


Cheers



--
Change the world one loan at a time - visit Kiva.org to find out how







--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 05/08/2007, 17h10   #2
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sun, Aug 05, 2007 at 09:26:28AM -0400, Frank McCormick wrote:
>
> I left my machine on overnight ( I usually don't ) and got these
> messages in my mail this morning:


You mean that you don't run anacron when you don't leave the compuer on
overnight? There are _lots_ of default scripts in /etc/cron.daily that
need to run.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 05/08/2007, 17h10   #3
Douglas Allan Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sun, Aug 05, 2007 at 09:26:28AM -0400, Frank McCormick wrote:
>
> I left my machine on overnight ( I usually don't ) and got these
> messages in my mail this morning:


You mean that you don't run anacron when you don't leave the compuer on
overnight? There are _lots_ of default scripts in /etc/cron.daily that
need to run.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 05/08/2007, 21h50   #4
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sun, Aug 05, 2007 at 09:26:28AM -0400, Frank McCormick wrote:
>
> I left my machine on overnight ( I usually don't ) and got these
> messages in my mail this morning:


You probably have cron-apt installed.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGtifgqJyztHCFm9kRApzQAJ91mACOrxqf3T9vIaKHIH oyV2kpcACgnHcO
vMFwKKf4SrESQdV55RiG3MM=
=Gxwv
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 05/08/2007, 21h50   #5
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sun, Aug 05, 2007 at 09:26:28AM -0400, Frank McCormick wrote:
>
> I left my machine on overnight ( I usually don't ) and got these
> messages in my mail this morning:


You probably have cron-apt installed.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGtifgqJyztHCFm9kRApzQAJ91mACOrxqf3T9vIaKHIH oyV2kpcACgnHcO
vMFwKKf4SrESQdV55RiG3MM=
=Gxwv
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 06/08/2007, 14h50   #6
Frank McCormick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sun, 05 Aug 2007 11:01:47 -0400
Douglas Allan Tutty <dtutty@porchlight.ca> wrote:

> On Sun, Aug 05, 2007 at 09:26:28AM -0400, Frank McCormick wrote:
> >
> > I left my machine on overnight ( I usually don't ) and got these
> > messages in my mail this morning:

>
> You mean that you don't run anacron when you don't leave the compuer
> on overnight? There are _lots_ of default scripts in /etc/cron.daily
> that need to run.



Yes I run anacron - but what explains the mail? The machine has been
on from 7 am until midnight quite often but never did anything like
this before.

Cheers

--
Change the world one loan at a time - visit Kiva.org to find out how







--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 06/08/2007, 15h00   #7
Frank McCormick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sun, 05 Aug 2007 22:41:20 +0300
Andrei Popescu <andreimpopescu@gmail.com> wrote:

> On Sun, Aug 05, 2007 at 09:26:28AM -0400, Frank McCormick wrote:
> >
> > I left my machine on overnight ( I usually don't ) and got these
> > messages in my mail this morning:

>
> You probably have cron-apt installed.



No...not on this machine.



Cheers

--
Change the world one loan at a time - visit Kiva.org to find out how







--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/08/2007, 22h50   #8
Bob Proulx
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

Frank McCormick wrote:
> I left my machine on overnight ( I usually don't ) and got these
> messages in my mail this morning:
>
> From: root@localhost.localdomain (Cron Daemon)
> To: root@localhost.localdomain
> Subject: Cron <root@debian> sudo aptitude update


You must have a crontab entry that says "sudo aptitude update".

> It seems cron ran once a minute starting at 5:00 AM and
> ending at 5:59 AM .....apparently doing the same thing over and over.


Sounds like a bad time spec in your crontab.

# field descriptions
# minute (0-59),
# hour (0-23),
# day of the month (1-31),),
# month of year (1-12),
# day of the week (0-6 with 0=Sunday).

Therefore the following would run once a minute. This is only an
example based upon your report.

* * * * * sudo aptitude update

> I havn't added or changed anything --
> I am sunning Sid


How can you say with a straight face that nothing has changed and yet
also say that you are running Sid?

> Anybody have any ideas ?


$ sudo crontab -l

$ find /etc/cron.* -type f -exec grep "aptitude.*update" {} +

Bob


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/08/2007, 22h50   #9
Bob Proulx
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

Frank McCormick wrote:
> I left my machine on overnight ( I usually don't ) and got these
> messages in my mail this morning:
>
> From: root@localhost.localdomain (Cron Daemon)
> To: root@localhost.localdomain
> Subject: Cron <root@debian> sudo aptitude update


You must have a crontab entry that says "sudo aptitude update".

> It seems cron ran once a minute starting at 5:00 AM and
> ending at 5:59 AM .....apparently doing the same thing over and over.


Sounds like a bad time spec in your crontab.

# field descriptions
# minute (0-59),
# hour (0-23),
# day of the month (1-31),),
# month of year (1-12),
# day of the week (0-6 with 0=Sunday).

Therefore the following would run once a minute. This is only an
example based upon your report.

* * * * * sudo aptitude update

> I havn't added or changed anything --
> I am sunning Sid


How can you say with a straight face that nothing has changed and yet
also say that you are running Sid?

> Anybody have any ideas ?


$ sudo crontab -l

$ find /etc/cron.* -type f -exec grep "aptitude.*update" {} +

Bob


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 12/08/2007, 01h00   #10
Frank McCormick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

On Sat, 11 Aug 2007 14:42:29 -0600
bob@proulx.com (Bob Proulx) wrote:

> Frank McCormick wrote:
> > I left my machine on overnight ( I usually don't ) and got these
> > messages in my mail this morning:
> >
> > From: root@localhost.localdomain (Cron Daemon)
> > To: root@localhost.localdomain
> > Subject: Cron <root@debian> sudo aptitude update

>
> You must have a crontab entry that says "sudo aptitude update".
>


Nope...nothing like that.

> > It seems cron ran once a minute starting at 5:00 AM and
> > ending at 5:59 AM .....apparently doing the same thing over and
> > over.

>
> Sounds like a bad time spec in your crontab.
>
>
> > I havn't added or changed anything --
> > I am sunning Sid

>
> How can you say with a straight face that nothing has changed and yet
> also say that you are running Sid?
>



I didn't say nothing has changed...I said *I* haven't added or
changed anything...specifically the crontab(s)


> > Anybody have any ideas ?

>
> $ sudo crontab -l
>
> $ find /etc/cron.* -type f -exec grep "aptitude.*update" {} +


Comes up empty...i.e. nothing returned. I'll have to leave it on
overnight again and see what happens. I guess with Sid, anything is
possible.


Frank
--
Change the world one loan at a time - visit Kiva.org to find out how







--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 12/08/2007, 01h10   #11
Frank McCormick
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior


Damn! 10 seconds after I wrote the mail below I did sudo crontab -l
and got:

0-59 5 * * * sudo aptitude update

How the he** did that get into there?? Would it be part of a cron or
anacron update??




On Sat, 11 Aug 2007 18:56:49 -0400
Frank McCormick <fmccormick@videotron.ca> wrote:

> On Sat, 11 Aug 2007 14:42:29 -0600
> bob@proulx.com (Bob Proulx) wrote:
>
> > Frank McCormick wrote:
> > > I left my machine on overnight ( I usually don't ) and got these
> > > messages in my mail this morning:
> > >
> > > From: root@localhost.localdomain (Cron Daemon)
> > > To: root@localhost.localdomain
> > > Subject: Cron <root@debian> sudo aptitude update

> >
> > You must have a crontab entry that says "sudo aptitude update".
> >

>
> Nope...nothing like that.
>
> > > It seems cron ran once a minute starting at 5:00 AM and
> > > ending at 5:59 AM .....apparently doing the same thing over and
> > > over.

> >
> > Sounds like a bad time spec in your crontab.
> >
> >
> > > I havn't added or changed anything --
> > > I am sunning Sid

> >
> >
> > $ sudo crontab -l
> >
> > $ find /etc/cron.* -type f -exec grep "aptitude.*update" {} +



This still comes up empty.
>
> Comes up empty...i.e. nothing returned. I'll have to leave it on
> overnight again and see what happens. I guess with Sid, anything is
> possible.


Frank
--
Change the world one loan at a time - visit Kiva.org to find out how







--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 16/08/2007, 08h20   #12
Bob Proulx
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Weird cron behavior

Frank McCormick wrote:
> Damn! 10 seconds after I wrote the mail below I did sudo crontab -l
> and got:


As I was sure that you would. :-) :-)

> 0-59 5 * * * sudo aptitude update


Yeah! The problem has been found! I was confident that it was in
there somewhere. Glad that things worked out.

> How the he** did that get into there?? Would it be part of a cron or
> anacron update??


I am sure it was the work of either poltergeists or gremlins. It
should not be part of any system package and if so would be a
violation of policy. Packages would use one of the whole files in
/etc/cron.* and not the personal SysV style crontab. Those are for
the humans and not for the programs.

http://www.debian.org/doc/debian-pol...rsys.html#s9.5

Bob


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


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h24.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,20378 seconds with 20 queries