Just tail displays the log file to the end and quits. tail -f shows
the log continuously
ctrl-c ends tail -f on all Un*x machines I've been on...
-f Follow. If the input-file is not a pipe, the pro-
gram does not terminate after the line of the
input-file has been copied, but enters an endless
loop, wherein it sleeps for a second and then
attempts to read and copy further records from the
input-file. Thus it can be used to monitor the
growth of a file that is being written by some
other process.
Thanks
Rohan
Does ^C end any command? Try `sleep 10'. You may have a different
interrupt character. Type `stty' to see how it's set.
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
> I am using tail -f command.....but ctrl-c does not end
> the command. This is output of the command uname -a;
> SunOS XXXXXXXX 5.8 Generic_117350-30 sun4u sparc
> SUNW,Sun-Fire-480R
Sure it's /usr/bin/tail and not some rogue version?
Also, what does "stty -a" say that "intr" is bound to?
hth
t
If I didn't know better I'd say this sounds a lot like the 'xtail'
program, which shows status on Ctrl-C and requires a Ctrl-\ to quit.
pkill -x tail
pkill -KILL -x tail