Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vcron-problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
dho
n00b
n00b


Joined: 28 Mar 2003
Posts: 28

PostPosted: Sat Nov 08, 2003 6:52 pm    Post subject: vcron-problem Reply with quote

Tjena,

Har lite problem med vcron som jag inte hittar någon lösning på. Har ett mailscript som jag vill att cron ska köra var femte minut för att kolla efter ny e-post, men av någon anledning så körs det var femtonde minut istället.
Code:

*/5 * * * * $HOME/scripts/checkmail > /dev/null 2>&1

Mailscriptet ser ut som följer:
Code:

#!/bin/bash
/usr/bin/fetchmail -s -m "/usr/bin/procmail -d%T"

Någon som ser vad det kan bero på?
Back to top
View user's profile Send private message
tindanos
n00b
n00b


Joined: 12 Apr 2003
Posts: 34
Location: Sweden->Gbg

PostPosted: Mon Nov 10, 2003 11:24 am    Post subject: Reply with quote

Ett alternativ skulle ju vara.
5 10 15 20 25 30 35 40 45 50 55 60 * * * *
Back to top
View user's profile Send private message
dho
n00b
n00b


Joined: 28 Mar 2003
Posts: 28

PostPosted: Mon Nov 10, 2003 1:48 pm    Post subject: Reply with quote

tindanos wrote:
Ett alternativ skulle ju vara.
5 10 15 20 25 30 35 40 45 50 55 60 * * * *
Det har jag också testat, men tyvärr så körs scriptet varje kvart ändå. Någon som känner till om det finns några kända problem med version 3.0.1-r2 av vcron?
Back to top
View user's profile Send private message
HouZe
n00b
n00b


Joined: 04 Jun 2003
Posts: 14
Location: Växjö, Sweden

PostPosted: Mon Nov 10, 2003 8:50 pm    Post subject: Reply with quote

Jag kan inte cron något vidare, men när jag kollar i /etc/crontab så har jag raden
*/15 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
vilket kontrollerar och kör alla cron-job som ska köras antar jag.
Och det är ju inställt på att köras varje kvart så testa att ändra i det för att få cron att köra var 5:e minut, glöm inte att starta om cron-daemonen när du uppdaterat inställningarna.
_________________
A computer is never more stupid than it's user.
Back to top
View user's profile Send private message
jmk
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2003
Posts: 130
Location: Stockholm

PostPosted: Mon Nov 17, 2003 9:46 pm    Post subject: Reply with quote

Vad har du i din fetchmailrc?
Har du set daemon 900 någonstans i den? Det skulle kanske kunna orsaka det.

Jag kör fetchmail som deamon via init. Inget krångel med cron. :)
Back to top
View user's profile Send private message
jmk
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2003
Posts: 130
Location: Stockholm

PostPosted: Mon Nov 17, 2003 9:50 pm    Post subject: Reply with quote

HouZe wrote:
glöm inte att starta om cron-daemonen när du uppdaterat inställningarna.

Du kan också göra
Code:
killall -SIGHUP vcron
för att få vcron att updatera /etc/crontab.
Back to top
View user's profile Send private message
dho
n00b
n00b


Joined: 28 Mar 2003
Posts: 28

PostPosted: Tue Nov 18, 2003 7:52 am    Post subject: Reply with quote

Nej, jag kör inte fetchmail som en daemon. Jag installerade om vcron och då försvann problemet så nu fungerar det. Huvudsaken det. Tack för all hjälp. :)
Back to top
View user's profile Send private message
jmk
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2003
Posts: 130
Location: Stockholm

PostPosted: Tue Nov 18, 2003 9:32 am    Post subject: Reply with quote

dho wrote:
Jag installerade om vcron och då försvann problemet så nu fungerar det. Huvudsaken det.
Knepigt fel... 8O
Glad att det löste sig.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian 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