Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tail command in solaris

554 views
Skip to first unread message

r.r...@gmail.com

unread,
Jul 3, 2006, 9:40:46 AM7/3/06
to
I am using tail command in solaris to monitor a log file and crtl-c
does not end the execution of the command. How do I end the tail
command?

"Thommy M. Malmström"

unread,
Jul 3, 2006, 9:46:22 AM7/3/06
to

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.

r.r...@gmail.com

unread,
Jul 3, 2006, 10:12:48 AM7/3/06
to
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

Thanks

Rohan

Gary Mills

unread,
Jul 3, 2006, 10:20:20 AM7/3/06
to
In <1151934046.5...@m79g2000cwm.googlegroups.com> r.r...@gmail.com writes:

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-

Tony Curtis

unread,
Jul 3, 2006, 10:24:48 AM7/3/06
to
>> On 3 Jul 2006 07:12:48 -0700,
>> r.r...@gmail.com said:

> 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

pardillico

unread,
Jul 3, 2006, 11:59:49 AM7/3/06
to
Are you using bash shell? or a exotic one?
In an Irix instalation I Knew, the job control was disabled in bash, I
had to use sh to get work ^z,^c,^d, ...

Henry Townsend

unread,
Jul 3, 2006, 7:43:08 PM7/3/06
to

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.

Oscar del Rio

unread,
Jul 4, 2006, 11:46:21 AM7/4/06
to
r.r...@gmail.com wrote:
> I am using tail -f command.....but ctrl-c does not end the command.

pkill -x tail
pkill -KILL -x tail

0 new messages