Every morning, I perform the same routine: open up my dialup connection,
send unsent messages, get messages from my ISP and disconnect. I would like
to automate this procedure in a script.
The problem is this: I write it up in a script like so:
pon MyISP
sendmail -q
fetchmail
poff
But since Linux executes in background, what happens is that pon is left to
dial in the background, sendmail is executed, and since no dialup connection
exists (yet) sendmail fails, fetchmail fails, and poff kills the dialup in
progress.
How can I halt the script until the connection is up and running, and better
yet: how do I keep it from executing poff until fetchmail is done?
-----
//\/\ario //\/\elendez- TI2DLL
[EMAIL PROTECTED]
http://desvelo.cjb.net
Happily running Linux since 10/28/98