Hallo David!

> 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?
>
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.

--
Harald

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

Reply via email to