Screen tail -f window closes immediately

Posted by t.heintz on Server Fault See other posts from Server Fault or by t.heintz
Published on 2012-10-22T09:43:33Z Indexed on 2012/10/22 11:03 UTC
Read the original article Hit count: 193

Filed under:

I have this in my ~/.screenrc file:

startup_message off

screen -t top 0 top
screen -t log 2 tail -f /path/to/application/log/*
screen -t action 1

#caption always "%?%F%{.R.}%?%3n %t%? [%h]%?"
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" 

When I start screen, it opens all three windows, but as soon as I try to switch to window 2, it closes immediately. I would assume there is a problem with the shell and it exits instantly, but I can't find anything wrong with it. I have tried using quotation marks around the path and the entire command, which only leads to "file not found" errors. The command works just fine when I enter it directly into a shell.

The screen version is: Screen version 4.00.02 (FAU) 5-Dec-03

Help?

© Server Fault or respective owner

Related posts about screen