[TxMt] Re: Starting a background process from a command
Daniel Grady
d.c.grady at gmail.com
Fri Nov 5 18:57:47 UTC 2010
Thanks a lot for pointing this out, Allan. So now if I write
(matlab -nosplash -nodesktop < in &> out) &>/dev/null &
inside a TM command it's letting the command exit while MATLAB continues running in the background. I'll have to continue fiddling with this later today.
-Daniel
On Nov 4, 2010, at 3:17 PM, textmate-request at lists.macromates.com wrote:
> From: Allan Odgaard <mailinglist at textmate.org>
> To: TextMate users <textmate at lists.macromates.com>
> Subject: [TxMt] Re: Starting a background process from a command
> Message-ID: <AA883E0B-D3FC-47E4-9CDC-1AEE165AE82B at textmate.org>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> On 4 Nov 2010, at 14:30, Daniel Grady wrote:
>
>> Hi everyone, I'm trying to write a TM command that will set up some
>> FIFOs, launch a process connected to those, and then the command
>> will exit [...] when I try to implement this inside a TM command,
>> the command doesn't exit until the launched process also exits.
>
> This is because TextMate will wait till your process close stdout/error.
>
> We have a ruby wrapper for this (which catch exceptions), for more
> info: http://wiki.macromates.com/HowTo/RunCommandInBackground
More information about the textmate
mailing list