Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-06-2010, 12:45 AM   #1
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 48
screen: using 'cat > fifo' in .screenrc

I'm setting up .screenrc, and I'm trying to set up a couple of screens as follows:

screen 1: cat > ~/fifo
screen 2: bash

~/fifo already exists...

This way, in screen 2, I can do something like this:

$ cat ~/fifo | tr a-z A-Z
then I can type

stop shouting!
into screen 1, and I'll see

in screen 2.

I'm having trouble setting up screen 1. Here's my .screenrc
startup_message off
screen cat > ~/.fifo
I start up screen, and it exits immediately:
$ screen
[screen is terminating]

when I run this at the shell, the fifo will block for input, and the process won't quit until I enter Control-D which closes the file. The process launched by .screenrc exits immediately.

I can run the command from within screen, operates just like it would in any other shell session...

... when 'cat > ~/.fifo' starts, launched within screen, I guess stdin is empty, so the process terminates immediately... is there a way of launching this in a way that leaves stdin open?


pipe, screen, screenrc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
screen / screenrc: how to use the right / ctrl arrow to go left and right in windows? frenchn00b Linux - General 6 11-10-2009 02:11 PM
Alt as escape modifier in .screenrc? lucmove Linux - Software 6 09-14-2009 10:34 PM
.screenrc to create window titles Xris718 Solaris / OpenSolaris 6 07-14-2009 12:28 PM
Screenrc disable CTRL-X for Lockscreen sadarax Linux - General 0 05-21-2009 06:18 PM
Reload screenrc without restarting screen? gejr Linux - Software 2 09-13-2007 09:14 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration