Is it possible to assign an AMS string variable the output stream of some funky executable (e.g. php.exe -f parsethis.txt) at runtime?
Announcement
Collapse
No announcement yet.
Capturing output at runtime
Collapse
X
-
Re: Capturing output at runtime
Hmmm... Sounds like you're missing something, if you'd like to post your project file it sounds easy enough to fix... Alternately you could re-read the help file and see if you can spot the mistake yourself.
Corey Milner
Creative Director, Indigo Rose Software
Comment
-
Re: Capturing output at runtime
Um .. just a thought [in case yu didnt] ... dont forget to surround the address/arg with " " if there are spaces - that includes
%SrcDir% if it has spaces as a full address:-
= Derek
["All glory comes from daring to begin" - fortune cookie]
Comment
-
Re: Capturing output at runtime
Splicer,
Is what you are trying to do is to catch the stdin/out stream as in the console output? If so, no. There is no way to do that. You would have to write a custom executable that captures the stdin/out streams after it spawns the outside process.
Comment
-
Re: Capturing output at runtime
OK I understand the question a bit better now. You want to take some output from your php file (via php.exe) and enter it into your AMS project at runtime.
No probs, one easy way is to simply write a text file from your"funky .exe" and then read it into AMS. It's very simple to write a text file using php as in your example above and it's also very simple to read a text file in AMS...
Corey Milner
Creative Director, Indigo Rose Software
Comment
-
Re: Capturing output at runtime
I think you hit the nail on the head there Brett [img]/ubbthreads/images/icons/smile.gif[/img] aww well... but...
WOOT! Your right Corey! [img]/ubbthreads/images/icons/smile.gif[/img]
Thanks so much for that insight!! Indeed it seems obvious in the cold light of day, and yet still escaped my addled brain last night, I was blinded by AMS (another funky executable) making everything so easy I suppose.
Thanks everyone for your consideraton, in future I'll think how to express myself to reduce ambiguity.
[splicer waves]
Comment
-
Re: Capturing output at runtime
Cool, glad you got what you needed...
Corey Milner
Creative Director, Indigo Rose Software
Comment
Comment