if i run ./local 196.209.102.x
where local is
case $1 in
196.*)
#route local
for i in `cat ../localroutes.dat`; do
echo ``route add -net `echo $i | sed s/\,/\ netmask\ /g` gw $1 `` ;
`route add -net `echo $i | sed s/\,/\ netmask\ /g` gw $1 ` ;
done
;;
165.*)
#international
route add default gw $1
;;
esac
it tell me
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
inet_route [-FC] flush NOT supported
./local: line 1: gw: command not found
if i remove gw in "\ /g` gw $1 ``" it give me
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
inet_route [-FC] flush NOT supported
./local: line 1: 196.209.102.x: command not found
thanx conrad
where local is
case $1 in
196.*)
#route local
for i in `cat ../localroutes.dat`; do
echo ``route add -net `echo $i | sed s/\,/\ netmask\ /g` gw $1 `` ;
`route add -net `echo $i | sed s/\,/\ netmask\ /g` gw $1 ` ;
done
;;
165.*)
#international
route add default gw $1
;;
esac
it tell me
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
inet_route [-FC] flush NOT supported
./local: line 1: gw: command not found
if i remove gw in "\ /g` gw $1 ``" it give me
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
[netmask N] [mss Mss] [window W] [irtt I]
[mod] [dyn] [reinstate] [[dev] If]
inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
inet_route [-FC] flush NOT supported
./local: line 1: 196.209.102.x: command not found
thanx conrad