This is not a Z specific question, but a desktop linux thing too...
I often let stuff download overnight on a slow connection, inevitably to find out that pppd dropped the carrier after an hour let's say and the rest of the night has been wasted...
How can check that the line hasn't been dropped, via ping or so, and if it has been, then have the script automatically redial via pon?