[Gambas-user] More than one console process

Benoit Minisini gambas at ...1...
Tue Jun 14 16:09:15 CEST 2005


On Tuesday 14 June 2005 10:37, Eilert wrote:
> Hi folks,
>
> just thought about brushing up one of my apps which includes a console
> thing "EXEC [ "who" ] ..." and so on.
>
> Reading out the output from the command I use the Process_Read event.
> But what if I want to have another command executed in the program, like
> "EXEC [ "ps" "ax" ] ..."?
>
> Either I need another Process_Read() event (and I don't know if it's
> possible to distinguish between several ones) or I have to insert some
> flag to be set and evaluated within the single Process_Read to
> distinguish between the two commands.
>
> Just give me an idea so I do not spoil the current project :-)
>
> Rolf
>

Use the LAST keyword to get a reference to the Process object that raised the 
event. In the future, the syntax of EXEC/SHELL will change so that you can 
choose the event name of the Process object - You won't have to use "Process" 
like now.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list