Hi!

On Don, 2011-02-03 at 15:14 +0100, Harald Becker wrote:
[...] 
> > Can I set up a script file to be run as a preamble at the opening of any
> > shell by a C prog using a "system()" call?

And the system() C-library call has exactly what to with busybox?

> I'm not sure if I completely understand your requirements, but have you
> considered to use ENV script activation?
> 
> That is: Do ...
> 
> export ENV=/PATH/TO/YOUR/SCRIPT
> 
> ... and any ash invoked with this environment setting will run the
> specified script BEFORE executing any other commands ... does this fit
> your needs?
> 
> bash behaves a bit different on this, but has similar features. Just see
> ash/bash manual pages under the topic INVOCATION.

... or you start it simply with
system("/PATH/TO/YOUR/SCRIPT; /PATH/TO/YOUR/APP");

Perhaps you want to use "&&" instead of ";".

Bernd
-- 
Bernd Petrovitsch                  Email : [email protected]
                     LUGA : http://www.luga.at

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to