Script - help wanted
Dimitrios Stergiou
dste at intranet.gr
Tue Jun 22 14:04:08 EEST 1999
On Tue, 22 Jun 1999, George A. Michalopoulos wrote:
> skefthka na kanw /sbin/ifconfig ppp0 | grep DOWN > epese.txt
>
to opoio den einai kai poli kali idea mias kai merika interfaces otan
pesoun e3afanizontai apo to ifconfig (px ppp0)
apo thn alli, mporeis na kaneis:
#!/bin/sh
/sbin/ifconfig | grep ^if_name >/dev/null
status=$?
if [ $status -ne 0 ]
then
mail -s "interface down" root
exit 1
fi
an tora exeis polla interfaces, mporeis na kanei wrap to parapano se ena
loop kai na baleis to mail na sou stelnei kai pio interface einia down
an 8es more info, mail me
-- hermes
I am a target. Bomb me at N25 46' 28" E37 58' 57" Alt. 145m
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list