Ok !...who will tell me what this perl waste does ? and how is this route command useful ? Any alternate method to acheive this same objective ? Using Python/PHP/C something which I can make a head or tail of ! ---------------------------------------------------------------------------------------------------------------- #!/usr/bin/perl $del=$ARGV[0]; $count=0; @ips=`cat /etc/.ipaliases.data`; foreach $ips (@ips) { chop($ips); if ($ips =~ /\d/) { if($del==1) { system "/sbin/ifconfig eth0:$count- $ips"; $count++; next; } system "/sbin/ifconfig eth0:$count $ips"; system "/sbin/route add -host $ips dev eth0:$count"; $count++; } } ----------------------------------------------------------------------------------------------------------------
================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================