Could you have the LC Script pass a temp file name to the helper app
which can then write to that file rather than stdout ? (maybe not really
a "temp file", but simply a file chosen by the LC Server script based on
current millisecs time or some such thing, and deleted after everything
is finished.)
And the LC Server script can simply wait until the helper is done, and
then read the file (and then delete it).
Alex.
On 04/05/2017 19:34, Malte Brill via use-livecode wrote:
Hi all,
has anybody successfully done this? Especially on Windows? I would like to
launch a livecode built application from a liveCode server script and get the
output back (on a Server that I control) Is that possible? If so, how?
I tried a couple of things to no avail:
<?lc
set the shellCommand to "CMD"
put "<html>"
put the time
put "<br />"
put Quote & "thes.exe" & Quote &&"-ui" into tShell
try
get shell(tShell)
put "Result:" && the result & cr &"It:" && it
put "<br />"
open process tShell for binary read
read from process tShell until EOF
put "Result:" && the result & cr &"It:" && it
put "<br />"
catch theErr
put theErr
end try
put cr
put the time
put "</html>"
?>
the helper app: In the stack script:
on startup
send "boo" to me in 500 millisecs
— to make sure all libs are loaded
end startup
on boo
quit
end boo
on shutdown
write "boo" to stdout
end shutdown
Thanks for all input I can get…
Malte
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode