On Wed, 11 Dec 2013 09:01:31 +0100
David Tabernero <davidt...@gmail.com> wrote:

> Hi again,
> 
> I'm trying with:
> 
> tmux new -dsmain /usr/bin/newsbeuter
> 
> 
> But doesnt works, I see that the script where is located the command
> is executing but I cant see tmux executing when I do a ps, so the
> newsbeuter program also don't execute.
> 
> Could you help me please?
> 
> .
> 
> 
> 
> 
> 2013/12/10 Nicholas Marriott <nicholas.marri...@gmail.com>
> 
> > Does it work if you do either:
> >
> > tmux new -dsmain /usr/bin/newsbeuter
> >
> > Or:
> >
> > tmux new -dsmain\; neww -tmain:1 /usr/bin/newsbeuter
> >
> >
> > On Tue, Dec 10, 2013 at 11:13:19PM +0100, David Tabernero wrote:
> > >    Hi. I'm trying to execute an application (newsbeuter) at boot.
> > >    I would like to execute in background and I would like to use
> > > tmux.
> > >
> > >    I'm trying in a shell script with
> > >
> > >    tmux new-session -d -s main*
> > >
> > >    tmux new-window -t main:1 /usr/bin/newsbeuter
> > >
> > >    But it seems that doesnt works, I don't see the application
> > >
> > >    ps -ef | grep -i new
> > >
> > >    root * * *2128 * * 1 *0 16:21 ? * * * *00:00:00 tmux
> > > new-session -d -s main
> > >
> > >    pi * * * *2275 *2221 *0 16:33 pts/1 * *00:00:00 grep
> > > --color=auto -i
> > ne
> > >
> > >    Could you help me please?
> >
Try with -

#!/bin/bash
sname=dave
tmux new-session -s $sname -d -x 140 -y 35
tmux new-window -t $sname -a -n newsbeuter  'exec newsbeuter'

Save as 'tmuxplus', and then make it executable, then run it and it
should do what you want.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to