No you need to use a new tmux with `` or $(), doesn't do any harm anyway.

On Mon, Oct 01, 2012 at 06:41:53PM +0400, Peter Vereshagin wrote:
> Hello.
> 
> Cool! I just needed to upgrade tmux version from 1.3.
> 
> 2012/09/30 23:47:02 +0100 Nicholas Marriott <nicholas.marri...@gmail.com> => 
> To Peter Vereshagin :
> NM> tmux neww -PF'#{pane_tty}'
> 
> 'neww' doesn't seem to have the '-F' with 1.6. Does/should it have that 
> feature in a later, e. g., VCS-stored version?
> 
> This thing works for me:
> 
>     tmux lsp -F '#{pane_tty}' -t `tmux neww -P`
> 
> Is it possible to avoid implicit shell call, e. g., backticks by mean of tmux
> scripting features? Can a tmux command take the output of another tmux command
> as an argument?
> 
> Thank you.
> 
> NM> 
> NM> 
> NM> 
> NM> On Sun, Sep 30, 2012 at 06:41:09PM +0400, Peter Vereshagin wrote:
> NM> > Hello.
> NM> > 
> NM> > I see that 'new-window' command grabs a new tty device for me.
> NM> > 
> NM> > Am wondering how could I return the device name to my script?
> NM> > 
> NM> > Here is the scoop.
> NM> > 
> NM> > I use to debug scripts with perl5 and sometimes thay fork():
> NM> > 
> NM> >     http://perlmonks.org/?node_id=128283
> NM> > 
> NM> > The debugger's forked instance requires a tty device that can hopefully 
> be
> NM> > acquired by tmux. As far as I see from 'info' command every window has 
> its own
> NM> > one so 'new-window' is a good candidate instead of 'xterm' kind of 
> solution,
> NM> > isn't it?
> NM> > 
> NM> > Problem is: I just can't get the device name out of 'new-window' 
> command. Is
> NM> > there any other way to do this that can be recommended? Or should I 
> file such
> NM> > a feature request exactly as it sounds here?
> NM> > 
> NM> > Thank you.
> NM> > 
> NM> > --
> NM> > Peter Vereshagin <pe...@vereshagin.org> (http://vereshagin.org) pgp: 
> A0E26627 
> NM> > 
> NM> > 
> ------------------------------------------------------------------------------
> NM> > Everyone hates slow websites. So do we.
> NM> > Make your web apps faster with AppDynamics
> NM> > Download AppDynamics Lite for free today:
> NM> > http://ad.doubleclick.net/clk;258768047;13503038;j?
> NM> > http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> NM> > _______________________________________________
> NM> > tmux-users mailing list
> NM> > tmux-users@lists.sourceforge.net
> NM> > https://lists.sourceforge.net/lists/listinfo/tmux-users
> 
> --
> Peter Vereshagin <pe...@vereshagin.org> (http://vereshagin.org) pgp: A0E26627 

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to