[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Executing a system command without waiting for a re
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] Executing a system command without waiting for a response |
Date: |
Sun, 31 Jul 2011 09:18:27 +0200 |
On Sun, Jul 31, 2011 at 00:08, ZuLuuuuuu <address@hidden> wrote:
> Hello,
>
> I was wondering what is the best and easiest way to execute a system command
> without waiting for a response (I guess it is called asynchronous process?).
>
> Smalltalk#system: waits for the response. For example, when I do:
>
> Smalltalk system: 'gedit'
>
> gedit is opened but the interpreter is locked until I close gedit. I want
> the interpreter not to be locked and I want gedit to be still open even if I
> quit the interpreter. Is something like this possible?
You can use a "fake" pipe (FileStream class>>#popen:dir:) for this.
Paolo