TSE: Example of the use case for MacroCmdLine parameters via "-e"
Hello,
1. If you run this it will run a TSE executable on my remote server:
2. If you click on this URL it will show the calculated roots for an example of that equation.
Array ( [0] => 1, 0.500000000000001 + 0.866025403784438 * i, 0.499999999999999 - 0.866025403784441 * i, -0.381966011250106, -2.6180339887499 )
3. So it will run and find the roots of the 5th degree quintic polynomial with some currently fixed, unchangeable parameters.
4. Of course you want to pass the 6 coefficients as variable parameters.
E.g. something like (so you pass it via the URL)
where the last entries are the parameters.
5. At the remote server TSE g32.exe runs it by invoking the '-e' command line parameter (in PHP)
exec( "g32.exe -e" . $tseMacroS, $output);
6. But TSE does thus only grab the macroname 'getstrfu.mac' when using '-e' and will ignore what comes after it (thus these space separated parameters 1 2 3 4 5 6).
So you can thus not pass variable parameters via the MacroCmdLine.
with friendly greetings
Knud van Eeden