autoexec.win

Harald Becker ralda at gmx.de
Fri Feb 4 14:42:52 UTC 2011


 Hallo Bernd!

> ... or you start it simply with
> system("/PATH/TO/YOUR/SCRIPT; /PATH/TO/YOUR/APP");
>
> Perhaps you want to use "&&" instead of ";".

That is indeed an idea, but nut fully correct ...

... at first the script has to be executable this way

... and this way any environment settings from that script get lost
before the application is started (which usally isn't the expected behavior)


... that one should do a better job:

system( ". /PATH/TO/YOUR/SCRIPT && /PATH/TO/YOUR/APP" );

[Note the dot in front of the script name that runs the script in the
same shell - see shell built-in "source" or "."]

--
Harald



More information about the busybox mailing list