[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Question on bb_info_msg, printf, and bb_error_msg?
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2016-07-10 17:54:06
Message-ID: CAK1hOcNyXKB_yxCYbGDtaFWNfF8ntf+yEGhbkZ8YvSvohkMHTw () mail ! gmail ! com
[Download RAW message or body]
On Sat, Jul 9, 2016 at 5:33 PM, Michael D. Setzer II
<mikes@kuentos.guam.net> wrote:
> The script run by the udhcpc does have a $ip variable in one place, and I
> tried putting an export after that line, but new got anything in environment.
Environment variables are per-process, they are not shared
with the parent process or any other process.
In your case of a ad-hoc script it's acceptable to scrape the output.
You can massage it so that the script works for both old and
new output: delete "udhcpc: " prefix, match "lease" case-insensitively.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic