Thank you Denys for the response !! I've attached my zcip.script please find the same in this mail. zcip.script called inside a child process via execl() i.e execl(script, script, arg, prefix, NULL)
Guessing that if zcip.script exit with non zero then it'll return back without allocation ip How could I check whether zcip.script returns zero (exit 0) or non-zero (exit 1) Regards, Kate On Fri, Jul 24, 2009 at 12:57 AM, Denys Vlasenko <[email protected]>wrote: > On Thursday 23 July 2009 07:03, kate katty wrote: > > HI, > > > > I'd noticed that zcip left ip blank and the respective command is > > #zcip -r 169.254.*.* br0 [pathto]/zcip.script > > > > How can I deal with this scenario? > > I'm unable to reproduce the same scenario. > > You need to show your zcip.script. > > With this test script I see that zcip does its part of the job just fine: > > # echo '#!/bin/sh' >env.sh > # echo 'echo called with $interface $ip' >>env.sh > # chmod 755 env.sh > # ./busybox zcip -vf if ./env.sh > init if > called with if > (a few seconds of pause) > config if 169.254.175.131 > called with if 169.254.175.131 > ^C > > -- > vda >
zcip.script
Description: Binary data
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
