Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2004 22:08:05 +0100
From:      Gianfranco Mior <gianfranco.mior@tin.it>
To:        FreeBSD-config ML <freebsd-config@freebsd.org>
Subject:   ISDN Router and Crontab
Message-ID:  <200403132208.05302.gianfranco.mior@tin.it>

next in thread | raw e-mail | index | archive | help
Hello list!

1st -Sorry for my english :-)

2nd - I've a FreeBSD 4.9 connetcted to internet with an ISDN router.=20
If I type as root the following commad:

#getmail --getmaildir /home/maildir/.getmail

I get what I want; the ISDN router start the=20
dial procedure to the ISP and I get my email from
the remoter pop3 server.
But if I place the same command line in a cronjob,
the router remain in a "sleep" state.=20
So, just to check I've make a script "tst.sh" containing the following li=
nes:

#!/bin/sh
echo "Start for mail chk..." >/dev/console
/usr/local/bin/getmail --getmaildir /home/mailer/.getmail
echo "Mail chk done!"  >/dev/console

As well as mentioned before, if I manually run the "tst.sh" I guess the=20
target, but if the same scrip is executed fron crontab, I get only the tw=
o
echo messages; the getmail process does not appear as executed and the IS=
DN=20
router remain in a "staedy" state.

What I can do? May someone suggest to me some helpful info?
Thank you in advance!
Gianfranco



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403132208.05302.gianfranco.mior>