Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2002 09:36:17 -0700 (PDT)
From:      Vinod <geekvinod@yahoo.com>
To:        freebsd-net@freebsd.org
Subject:   ifconfig and route in a shell script
Message-ID:  <20020525163617.42919.qmail@web21109.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
i had some problems with a script of mine.

#!/bin/sh
ifconfig wi0 10.0.1.5 netmask 255.255.255.0
route delete default
route add default 10.0.2.1




i get a host 10.0.2.1 unreachable message when i run
this script.then i put the ifconfig in a seperate
script and ran it first and then the route commands in
a seperate script.this works.so my guess is there is
some timing issue between these two commands.i tried
putting an echo between the ifconfig and route
commands(to make a slight delay) but that didnt
work.any other suggestions?
will putting a delay work?if yes,can anyone tell me
how i can do that on a script.i am new to writing
shell scripts.i am using csh. 

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020525163617.42919.qmail>