You are not logged in.

#1 2010-02-28 21:04:10

Soupstuffs
Member
Registered: 2009-08-28
Posts: 42

Crontab not working. [SOLVED]

Hello,
I am using mutt with offlineimap, and I want a cronjob that automates it every five minutes. Right now, I type gm and it gets my mail. My crontab -e is as follow:

*/5 * * * * /home/soupy/.bin/mailrun.sh

mailrun.sh is as follows:

#!/bin/sh

PID=`pgrep offlineimap`

[ -n "$PID" ] && exit 1

offlineimap &

exit 0

It's executable and everything.

It doesn't sync sync it at all.

Last edited by Soupstuffs (2010-03-01 21:29:33)

Offline

#2 2010-02-28 23:22:07

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Crontab not working. [SOLVED]

If you run offlineimap manually it runs fine? Maybe it's a problem with your configuration file.


(lambda ())

Offline

#3 2010-03-01 21:28:57

Soupstuffs
Member
Registered: 2009-08-28
Posts: 42

Re: Crontab not working. [SOLVED]

I figured it out. I needed to put -u Noninteractive.Basic & after offlineimap in the mailrun file. Thanks!2

Offline

Board footer

Powered by FluxBB