coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request about "Tail -f": Gentle exit (not using CTRL+C)


From: Bernhard Voelker
Subject: Re: Feature request about "Tail -f": Gentle exit (not using CTRL+C)
Date: Mon, 22 Oct 2018 01:31:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 10/21/18 11:13 AM, Brian Wengel wrote:
> It seem you can only exit “tail –f…” sending *CTRL+C*, but that can be an
> issue if you call it from another process that you want to keep running
> after tail has exited.
> 
> Another example is “start daemon; tail -F logfile; stop daemon” as
> user2394284 commented in this StackExchange
> <https://askubuntu.com/questions/36785/tail-how-to-quit-tail-and-restore-terminal-window>
> thread.

The tail implementation in the GNU coreutils already know a option
to terminate itself when a process of a certain PID died:

  $tail --help | grep PID
      --pid=PID            with -f, terminate after process ID, PID dies

Isn't this sufficient?

Thanks & have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]