Re: RFC: Session Manager script

2010-09-13 Thread Joshua Isom
On 9/13/2010 2:55 AM, Nicholas Marriott wrote: > > No, I meant that 1>&2 2>/dev/null looks unusual, did you really still > want stdout (although has-session doesn't output anything to stdout, so > it hardly matters much)? At first I was trying to see why the script wasn't working, and realized it

Re: RFC: Session Manager script

2010-09-13 Thread Nicholas Marriott
On Sun, Sep 12, 2010 at 06:33:05PM -0500, Joshua Isom wrote: > On 9/12/2010 5:07 PM, Nicholas Marriott wrote: > >On Sun, Sep 12, 2010 at 02:58:01PM -0500, Joshua Isom wrote: > > >>sessions= > >># Check to see if tmux is running, or else sed might stall > >>tmux has-session 1>&2 2>/dev/null > > > >

Re: RFC: Session Manager script

2010-09-12 Thread Joshua Isom
On 9/12/2010 5:07 PM, Nicholas Marriott wrote: > On Sun, Sep 12, 2010 at 02:58:01PM -0500, Joshua Isom wrote: >> sessions= >> # Check to see if tmux is running, or else sed might stall >> tmux has-session 1>&2 2>/dev/null > > Are you sure this pair of redirections does what you think it does? :-)

Re: RFC: Session Manager script

2010-09-12 Thread Nicholas Marriott
On Sun, Sep 12, 2010 at 02:58:01PM -0500, Joshua Isom wrote: > I wrote up a script to handle sessions for me. I typically use ssh > and a laptop so a multiplexer helps a lot, especially when updating > software, encoding videos, or anything else that takes a lot of > time. I haven't used tmux fo

RFC: Session Manager script

2010-09-12 Thread Joshua Isom
I wrote up a script to handle sessions for me. I typically use ssh and a laptop so a multiplexer helps a lot, especially when updating software, encoding videos, or anything else that takes a lot of time. I haven't used tmux for very long, I just recently found it, so I don't know if there's