[Gambas-user] Standard Input & Exec

John Rose john.aaron.rose at ...626...
Wed Feb 25 10:24:47 CET 2015


I want an Exec command to take input from Standard Input. I've looked at
the Gambas documentation and it states:
"If WRITE is specified, data can be sent to the command standard input
by using the Process object with common output instructions: PRINT,
WRITE, ... Note that a reference to the Process object is required.".

I don't understand the above. It seems to imply that I should code
penigma_app.Print sPlain (with Dim sPlain As String and sPlain =
"QWERTYU")  where my Exec statement is:
penigma_app = Exec aExecParameters Wait For Read Write As
"EnigmaResultsDetail"
and I have "Dim penigma_app as Process". However, the IDE does not show
Print after coding penigma_app. and the compiler objects.

What do I need to do. Also, the Gambas documentation states:
"If you plan to control an application by sending commands to standard
input then testing should be performed outside of the IDE (i.e. make an
executable and launch it from the command line) as the console within
the development environment is not a true virtual terminal and will
cause unexpected results.".
So presumably, I would need to test the app after creating an
executable. So if the executable was named EnigmaWehrmacht.gambas what
would I need to enter on the command line to test this app?

-- 

John






More information about the User mailing list