[TxMt] Re: Session ID?

John DeSoi desoi at pgedit.com
Sun Nov 16 19:42:16 UTC 2014


On Nov 14, 2014, at 3:16 PM, Carpii UK <carpii.uk at gmail.com> wrote:

> Not a very nice solution, but if your routine is now returning a pid of the shell rather than the parent textmate, you can query it from bash, then the PPID should be the TM pid
> 
> $ ps -lp62651
>   UID   PID  PPID        F CPU PRI NI       SZ    RSS WCHAN     S             ADDR TTY           TIME CMD
>   501 62651   250     4084   0  48  0  3708212  48356 -      S                   0 ??         0:02.11 /Applications/TextMate.app/Contents/MacOS/TextMate
> 
> This would be stable *even* if it was possible to run more than one instance of TM. 
> 
> But are you sure this is even possible? 
> I could not get TM to use more than one instance, even trying various things from the commandline

Right, I was testing something like this:

pgrep "TextMate"
20567
15405

and had two IDs because I was running 1.5 and 2.0 at the same time.

Allan gave some good solutions, I should be good to go.

Thanks,

John DeSoi, Ph.D.



More information about the textmate mailing list