NetBSD-Users archive

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

Re: killing `ssh <host> <cmd>' does not kill <cmd> on <host>



On Tue, Dec 09, 2008 at 03:53:54PM +0100, Petar Bogdanovic wrote:
> Hi,
> 
> when I run a `never ending' command like:
> 
>    ssh host tail -f /var/log/maillog.0
> 
> CTRL-C-ing ssh after tail has reached the end of maillog.0 does not kill
> tail. If tail however suddenly would start to generate output again, it
> would die immediately.


Do you have the same problem when using tail -F instead of -f ?

(this will follow the logfile even when it has been rotated, plus
free the file descriptor of the previous one.)

        Geert




Home | Main Index | Thread Index | Old Index