The lock-command doesn't have $TMUX set, and unfortunately it isn't
trivial to implement because the lock command happens in the client
rather than the server.

However, run-shell has $TMUX set, so you should be able to use it to set
lock-command to pass $TMUX to your script, for example:

run 'tmux set -g lock-command "mycommand $TMUX"'

(You may need a fairly recent tmux for this to work.)



On Tue, Jun 17, 2014 at 06:05:42PM +0000, Jesse Hathaway wrote:
> Is it possible to access the $TMUX environment variable from the program 
> specified for the lock-command?
> 
> Specifically I am interested in having the tmux socket path inside my locking 
> script.
> 
> Thanks, Jesse
> 
> 
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to