[Gambas-user] shell and exec with wait
Benoit Minisini
gambas at ...1...
Thu Mar 17 16:58:50 CET 2005
On Thursday 17 March 2005 16:35, Rob wrote:
> On Thursday 17 March 2005 04:54, Benoit Minisini wrote:
> > In Qt, the signal handler that is raised when a process is
> > terminated (SIGCHLD) writes to a socket, so that an event can be
> > generated in the event loop.
> >
> > I think I can use the same trick. I must see... But the right way
> > is having the pselect() system call in Linux :-)
>
> I really think that SHELL ... WAIT FOR READ *should* throw an error!
> I could see adding a Shell() or Exec() function that runs a program,
> waits for it to finish, and returns its output immediately (like my
> Backtick function, but without the awfulness) but what's the point in
> having an event-based interface for a totally synchronous operation,
> especially with these hoops you need to jump through to do it?
>
> Rob
>
Let's go for raising an error!
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list