@ssolie
Are you trying to print a file from CLI or something?
No not at all
I was able to manipulate Gui4Cl'is debug output or the output of any application to stdout, reidrecting it to a file (or the printer - i donthave one working )
using CMD . I think you could also redirect it to the serial output)
Being able to redirect the output when launching an application is far more limited: you can't change that afterwards.
If i recall well the Gui4Cli interface to Ghostscript i wrote, used CMD in this way.
You do send a string to Ghostscript (using stringins on OS4, scripit under OS3) Ghostscript produces some output, you direct it to a file and then use that info as appropriate.
There were other interfaces using CMD this way.
The same approach is indeed valid for any (linux) CLI only program.
I want to be able to catch and direct to different files (or print them out) output that only pertain to some (different) "application time sequence".
To give an example: Ctl_V will for an active GUI4CLI script produce in Gui4Cli's debug output the list of all the current variables and their values.
I want to catch this output easily before execution of a (Gui4Cli) "command sequence" and after, then compare those outputs.
I am able using "stringins" to simulate such a Ctl V triggered before and after a chosen command sequence.
(using the Gui4Cli xBEFORE & xAFTER event)
If i can direct the Ctl_V xBEFORE output to 1 file, the Ctl_V xAFTER variables info to an other file and the normal debug output to a third one or just to the normal debug output,
that would be neat. I could autmatically compare the variables before and after & present a clearer, smaller comparison
"var x" "value before" "value after"
At the moment i have them all in sequence: a long list of variables info, the debug output, again a long list of variables info in the debug output.