Linux script


Linux script

Postby kumaresh.G » Mon Mar 31, 2003 12:12 pm


I need a small script for our linux server, we have linux server that is for 128 kbps leased line internet server we connect other m/c thor` ipchains some times we have small break from that leased line that time we manuvely connect the ISDN line then noted the static IP with the command of 'ip a' after change the gateway with the command of route add default gw that gw add.
after we got the normal connectivity. This same process have we do thro` script is it possible pls arrange to send a model.

for example

[root@ssllnx2 root]# ip a
1: lo: mtu 16436 qdisc noqueue

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet brd scope host lo
2: eth0: mtu 1500 qdisc pfifo_fast qlen 100

link/ether 00:00:e8:e3:d6:1d brd ff:ff:ff:ff:ff:ff

inet brd scope global eth0
3: eth1: mtu 1500 qdisc pfifo_fast qlen 100

link/ether 00:07:e9:0b:a0:eb brd ff:ff:ff:ff:ff:ff

inet brd scope global eth1
6: ppp0: mtu 1514 qdisc pfifo_fast qlen 3


inet peer scope global ppp0

after then

route add default gw


Don Cady

Re: Linux script

Postby Don Cady » Tue Mar 21, 2006 3:40 pm

Am converting BAT files that have GOTOs in them. Does Linux allow GOTOs? If not, how can these files be converted? How could the EXIT command be used?

Return to “Archives”

Who is online

Users browsing this forum: No registered users and 1 guest