Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cronjobs werden nicht gemacht
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
AustrianCoder
Apprentice
Apprentice


Joined: 11 Oct 2003
Posts: 258
Location: �sterreich

PostPosted: Tue Mar 23, 2004 7:15 pm    Post subject: Cronjobs werden nicht gemacht Reply with quote

Hallo.

Hier mal meine Ausgabe von crontab -e

Code:

@weekly emerge sync
*/5 * * * * /bin/run-parts /etc/cron.mrtg 1> /dev/null


Doch /bin/run-parts /etc/cron.mrtg 1> /dev/null wird nie aufgerufen. An was könnte das liegen?

Danke, AC
Back to top
View user's profile Send private message
Mr.Big
Guru
Guru


Joined: 10 Apr 2002
Posts: 424
Location: Königswartha / Germany

PostPosted: Tue Mar 23, 2004 7:22 pm    Post subject: Reply with quote

welchen Cron benutzt Du ???
Hast Du auch brav
Code:
crontab /etc/crontab
gemacht ?
(Nur bei dcron oder fcron)
Back to top
View user's profile Send private message
AustrianCoder
Apprentice
Apprentice


Joined: 11 Oct 2003
Posts: 258
Location: �sterreich

PostPosted: Tue Mar 23, 2004 8:00 pm    Post subject: Reply with quote

Code:

x-factor root # emerge -s cron
Searching...
[ Results for search key : cron ]
[ Applications found : 7 ]

*  app-admin/cronolog
      Latest version available: 1.6.2-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 130 kB
      Homepage:    http://cronolog.org/
      Description: Cronolog apache logfile rotator
      License:     GPL-2

*  app-emacs/crontab-mode
      Latest version available: 1.11
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 2 kB
      Homepage:    http://www.hgsc.bcm.tmc.edu/~harley/elisp/
      Description: Mode for editing crontab files
      License:     GPL-2

*  sys-apps/anacron
      Latest version available: 2.3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 23 kB
      Homepage:    http://anacron.sourceforge.net/
      Description: Anacron -- a periodic command scheduler
      License:     as-is

*  sys-apps/cronbase
      Latest version available: 0.2.1-r2
      Latest version installed: 0.2.1-r2
      Size of downloaded files: 0 kB
      Homepage:    http://www.gentoo.org/
      Description: The is the base for all cron ebuilds.
      License:     GPL-2

*  sys-apps/dcron
      Latest version available: 2.9
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 15 kB
      Homepage:    http://apollo.backplane.com/
      Description: A cute little cron from Matt Dillon
      License:     GPL-2

*  sys-apps/fcron
      Latest version available: 2.0.0-r3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 140 kB
      Homepage:    http://fcron.free.fr/
      Description: A command scheduler with extended capabilities over cron and anacron
      License:     GPL-2

*  sys-apps/vixie-cron
      Latest version available: 3.0.1-r3
      Latest version installed: 3.0.1-r3
      Size of downloaded files: 49 kB
      Homepage:    http://www.vix.com/
      Description: The Vixie cron daemon
      License:     as-is
Back to top
View user's profile Send private message
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Tue Mar 23, 2004 8:37 pm    Post subject: Reply with quote

AustrianCoder wrote:
Code:

x-factor root # emerge -s cron
Searching...
[ Results for search key : cron ]
[ Applications found : 7 ]

*  app-admin/cronolog
      Latest version available: 1.6.2-r1
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 130 kB
      Homepage:    http://cronolog.org/
      Description: Cronolog apache logfile rotator
      License:     GPL-2

*  app-emacs/crontab-mode
      Latest version available: 1.11
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 2 kB
      Homepage:    http://www.hgsc.bcm.tmc.edu/~harley/elisp/
      Description: Mode for editing crontab files
      License:     GPL-2

*  sys-apps/anacron
      Latest version available: 2.3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 23 kB
      Homepage:    http://anacron.sourceforge.net/
      Description: Anacron -- a periodic command scheduler
      License:     as-is

*  sys-apps/cronbase
      Latest version available: 0.2.1-r2
      Latest version installed: 0.2.1-r2
      Size of downloaded files: 0 kB
      Homepage:    http://www.gentoo.org/
      Description: The is the base for all cron ebuilds.
      License:     GPL-2

*  sys-apps/dcron
      Latest version available: 2.9
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 15 kB
      Homepage:    http://apollo.backplane.com/
      Description: A cute little cron from Matt Dillon
      License:     GPL-2

*  sys-apps/fcron
      Latest version available: 2.0.0-r3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 140 kB
      Homepage:    http://fcron.free.fr/
      Description: A command scheduler with extended capabilities over cron and anacron
      License:     GPL-2

*  sys-apps/vixie-cron
      Latest version available: 3.0.1-r3
      Latest version installed: 3.0.1-r3
      Size of downloaded files: 49 kB
      Homepage:    http://www.vix.com/
      Description: The Vixie cron daemon
      License:     as-is


sollen wir uns den cron aussuchen den du benutzt? :D
Back to top
View user's profile Send private message
siliconburner
Guru
Guru


Joined: 02 May 2003
Posts: 300

PostPosted: Tue Mar 23, 2004 8:47 pm    Post subject: Reply with quote

mit vixie-cron anzugeben wärs auch schneller gegangen als erst emerge + kopieren :D
_________________
living in /dev/null
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Tue Mar 23, 2004 9:14 pm    Post subject: Reply with quote

Ob der Syntax jetzt richtig ist, den du angegeben hast, weiß ich jetzt auf Anhieb nicht. Ich geh aber mal davon aus.

1. Die Crontab installierst du mit mit: crontab -e.
D.h. damit gelangst du in den Editor, und nach Schließen wird die Crontab installiert. Falls du vorher noch keinen cronjob eingerichtet hast, wird die crontab dabei angelegt. U.a. werden da auch die Dateien für daily, weekly und monthly aufgerufen. Evtl. mußt du diese dann noch editieren, was du ja anscheinend schon gemacht hast.

2. Was ganz Dummes. Zumindest war das bei mir das Problem. Hast du den Crondaemon überhaupt gestartet? Also /etc/init.d/vixie-cron start. Wenn nicht, dann kannst du bei der Gelegenheit den Dienst gleich noch in die Runlevel eintragen:
rc-update add vixie-cron default
Ich glaub zumindest, daß man den ins default Runlevel eintragen sollte.

Gruß
Sven
Back to top
View user's profile Send private message
AustrianCoder
Apprentice
Apprentice


Joined: 11 Oct 2003
Posts: 258
Location: �sterreich

PostPosted: Tue Mar 23, 2004 11:03 pm    Post subject: Reply with quote

@musv:

1. crontab -e: Hab ich schon gemacht

2. vixie-cron ist gestartet

Der Befehl /bin/run-parts /etc/cron.mrtg 1> /dev/null funzt super, doch stimmt das */5 * * * * für 5 Minuten?
Back to top
View user's profile Send private message
AustrianCoder
Apprentice
Apprentice


Joined: 11 Oct 2003
Posts: 258
Location: �sterreich

PostPosted: Wed Mar 24, 2004 2:06 pm    Post subject: Reply with quote

Habs heute wieder versucht. Nun gehts :)

Code:

Mar 24 15:10:00 x-factor CRON[4073]: (root) CMD (/bin/run-parts /etc/cron.mrtg 1> /dev/null)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum