We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Failing Miserably, If Not Inventively
|
| Subject: |
|
When in Rome, eat like Romans do ... |
| Date: |
|
2004-08-11 05:08:55 |
| From: |
|
ceplma
|
|
|
|
I have never used Mac for anything much seriously (I cannot stand a computer with one-eyed mouse :-), but as an old Linux user I cannot imagine, why you just don't have something like this:
#!/bin/sh
if (ping -s www.google.com); then
echo "Online"
WEREONLINE=1
else
/usr/sbin/pppd myISP # requires configured
# /etc/pppd/peers and chatscripts -- see
# chat(8) for more.
WEREONLINE=0
fi
eudora --fetch-mails # or how to do it?
if ($WEREONLINE); then
killall pppd
fi
Moreover, decent distributions of Linux provide some more advancend scripts like this called usually /usr/bin/po{ff,n}.
Matej
|