Re: problem with Screen

Jostein Berntsen <jbernts-gyXR7Lt7FVk/[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <20110715155230.GA6549@josteinb>
On 15.07.11,16:23, Jostein Berntsen wrote:
> On 15.07.11,14:18, Xavier wrote:
> > Hi,
> > 
> > 
> > I am on:
> > 
> > 
> > > uname-v
> > 
> > FreeBSD 8.2-RELEASE
> > 
> > 
> > I have the following .screenrc:
> > 
> > 
> > screen     pkg_info | less     0     pkg_info | less
> > 
> > screen     pkg_info              1     pkg_info -f
> > 
> > 
> > When I start the Screen, execute the command 'pkg_info | less' and
> > 'pkg_info-f' but in the end closes the screens.
> > 
> > 
> > Someone can tell me how should I put these commands for running the
> > screens and remain open?
> > 
> 
> Put the commands in a script and run this instead like:
> 
> screen pkg_info | less 0 pgk1.sh
> screen pkg_info        1 pkg2.sh
> 
> where each script contains the commands you want executed. The screen 
> window will close if you exit less. 
> 

This should be:

screen -t pkg_info | less 0 pgk1.sh
screen -t pkg_info        1 pkg2.sh


Jostein
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.