Re: Accessing the $TMUX environment variable from a locking script

2014-06-19 Thread Jesse Hathaway
Nicholas Marriott gmail.com> writes: > > 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-comman

Re: Accessing the $TMUX environment variable from a locking script

2014-06-19 Thread Nicholas Marriott
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 'tmu

Accessing the $TMUX environment variable from a locking script

2014-06-17 Thread Jesse Hathaway
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 Syst