Yes, it waits until the script ends but I don't want the script to end. I want it to keep watching the file for additions but I want this done in the background.

On 7/4/06, Dark Knight <[EMAIL PROTECTED]> wrote:
i think that line actually waits. '-f' will display the data as the file grows.

On 7/4/06, John Peter Loh <[EMAIL PROTECTED] > wrote:
I have three scripts that read stdin from
tail -n 0 -f <file to read> | <script>

What I want to do is have them run on startup in screen.

I tried the following in rc.local:
screen -dmS <scriptname> tail -n 0 -f <file to read> | <script>

But it stops from that line, the other two scripts of the same format do not get executed. I also tried putting all three lines in a .sh script but it doesn't make a difference. I'm using CEntOS 4.3.

TIA
-- JP Loh

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph



_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

-- JP Loh
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to