USM Bish (Tuesday, July 30, 2002 9:02 PM):
> On Tue, Jul 30, 2002 at 11:22:50AM -0700, Tineeminee wrote:
> > To connect to the internet i use and script called vsnl. Now i would
> > like to use an auto- scheduler which would automatically connect to
> > VSNL at some fixed-time download the mails and then disconnect autm-
> >
> This needs to be scripted. There are two options that you have here:
> a) Run your script as a cron process at specified times ....
> b) Use the "at" command for making the script ('man at' for details)
I would prefer using the /etc/ppp/ip-[up|down].local scripts, which are
called when ppp0 comes up, and when it goes down.
* Set a cronjob to call wvdial (and set wvdial to have an idle timeout)
* In ip-up.local, have a script like this one from the Postfix FAQ -
#!/bin/sh
# call fetchmail
fetchmail >& fetchmail.log&
# # Start deliveries.
/usr/sbin/sendmail -q
# Allow deliveries to start.
sleep 10
# Loop until all messages have been tried at least once.
while mailq | grep '^[^ ]*\*' >/dev/null
do
sleep 10
done
-srs
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help