TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > OpenBSD

I can't stop tail -f /path/to/file via CTRL+C or kill onOpenBSD/sparc64 4.2

OpenBSD

 
 
Thread Tools Display Modes
Unread 07-12-2007, 03:25 PM   #1
plavcik@gmail.com
Guest
 
Posts: n/a
I can't stop tail -f /path/to/file via CTRL+C or kill onOpenBSD/sparc64 4.2

Hi,

I noticed, that on OpenBSD/sparc64 4.2, I can't stop tail -f /path/to/
file via CTRL+C or kill command. I have to use kill -9. In bash
prompt, CTRL+C is working fine, so I hope, that is not about disabled
CTRL+C, but something with tail. I'm connected via ssh with
TERM=xterm.

Is tail this working fine on other architecture? What I shall check?

Thank you,
Jiri

Sponsored Links
 
Unread 07-12-2007, 03:25 PM   #2
DoN. Nichols
Guest
 
Posts: n/a
Re: I can't stop tail -f /path/to/file via CTRL+C or kill on OpenBSD/sparc64 4.2

On 2007-12-06, plavcik*********** <plavcik***********> wrote:
> Hi,
>
> I noticed, that on OpenBSD/sparc64 4.2, I can't stop tail -f /path/to/
> file via CTRL+C or kill command. I have to use kill -9. In bash
> prompt, CTRL+C is working fine, so I hope, that is not about disabled
> CTRL+C, but something with tail. I'm connected via ssh with
> TERM=xterm.
>
> Is tail this working fine on other architecture? What I shall check?


Well ... I've not installed bash, but in a recently installed
OpenBSD 4.2 in an Ultra-5 (which is sparc64) I encounter no problems
using CTRL-C to terminate "tail -f /var/log/messages" with tcsh as the
active shell.

Have you tried it with other shells? It may be an artifact of
bash -- or of your configuration options in bash.

Good Luck,
DoN.

--
Email: <dnichols@d-and-d.com> | Voice (all times): (703) 938-4564
(too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---
 
Unread 07-12-2007, 03:25 PM   #3
plavcik@gmail.com
Guest
 
Posts: n/a
Re: I can't stop tail -f /path/to/file via CTRL+C or kill onOpenBSD/sparc64 4.2

On 7 Pro, 00:48, "DoN. Nichols" <dnich...@d-and-d.com> wrote:
> Well ... I've not installed bash, but in a recently installed
> OpenBSD 4.2 in an Ultra-5 (which is sparc64) I encounter no problems
> using CTRL-C to terminate "tail -f /var/log/messages" with tcsh as the
> active shell.
>
> Have you tried it with other shells? It may be an artifact of
> bash -- or of your configuration options in bash.
>
> Good Luck,
> DoN.


Thank you for quick reply. I replaced bash with ksh, but with same
result, CTRL+C is working fine directly in shell, but not in tail (to
exit tail). I have to use CTRL+Z and then kill -9 to stop tail

But, I discovered, that if I run tail as root, it's working fine (I
can stop tail with CTRL+C).

So I dont know answers to these questions:
- If CTRL+C is working fine in shell, shall the setting be fine also
for tail? I, hope that yes.
- Why tail can't be stoped with CTRL+C or kill command (without -9)
running under user, but is working running under root?

Thank you for any ideas,
Jiri
 
Unread 07-12-2007, 03:25 PM   #4
pakrat@localhost.pr.neotoma.org
Guest
 
Posts: n/a
Re: I can't stop tail -f /path/to/file via CTRL+C or kill on OpenBSD/sparc64 4.2

On Fri, 7 Dec 2007 00:45:15 -0800 (PST) in <d574cd32-55db-4636-8d08-6b7988766e54@e23g2000prf.googlegroups.com> plavcik*********** <plavcik***********> wrote:
> On 7 Pro, 00:48, "DoN. Nichols" <dnich...@d-and-d.com> wrote:
>> Well ... I've not installed bash, but in a recently installed
>> OpenBSD 4.2 in an Ultra-5 (which is sparc64) I encounter no problems
>> using CTRL-C to terminate "tail -f /var/log/messages" with tcsh as the
>> active shell.
>>
>> Have you tried it with other shells? It may be an artifact of
>> bash -- or of your configuration options in bash.
>>
>> Good Luck,
>> DoN.

>
> Thank you for quick reply. I replaced bash with ksh, but with same
> result, CTRL+C is working fine directly in shell, but not in tail (to
> exit tail). I have to use CTRL+Z and then kill -9 to stop tail
>
> But, I discovered, that if I run tail as root, it's working fine (I
> can stop tail with CTRL+C).
>
> So I dont know answers to these questions:
> - If CTRL+C is working fine in shell, shall the setting be fine also
> for tail? I, hope that yes.
> - Why tail can't be stoped with CTRL+C or kill command (without -9)
> running under user, but is working running under root?
>
> Thank you for any ideas,


If you cannot kill it with 'kill -INT', or 'kill' with no options, you
have something wrong with the system.

If 'kill -INT' works, check the output of 'stty -a' and see if
intr is defined as ^C.

If that works, check to see if ^C is actually making it down the
tty.
typeing 'e' 'c' 'h' 'o' ' ' control-v control-c
should show 'echo ^C'

P.S.
If you're one of those hosers that insists on using 'kill -9'
every time... you might consider finding a new hobby/line of work.
--
Chris Dukes
< elfick> willg: you can't use dell to beat people, it wouldn't stand up
to the strain... much like attacking a tank with a wiffle bat
 
Unread 07-12-2007, 03:37 PM   #5
pakrat@localhost.pr.neotoma.org
Guest
 
Posts: n/a
Re: I can't stop tail -f /path/to/file via CTRL+C or kill on OpenBSD/sparc64 4.2

Sponsored Links
On Fri, 7 Dec 2007 00:45:15 -0800 (PST) in <d574cd32-55db-4636-8d08-6b7988766e54@e23g2000prf.googlegroups.com> plavcik*********** <plavcik***********> wrote:
> On 7 Pro, 00:48, "DoN. Nichols" <dnich...@d-and-d.com> wrote:
>> Well ... I've not installed bash, but in a recently installed
>> OpenBSD 4.2 in an Ultra-5 (which is sparc64) I encounter no problems
>> using CTRL-C to terminate "tail -f /var/log/messages" with tcsh as the
>> active shell.
>>
>> Have you tried it with other shells? It may be an artifact of
>> bash -- or of your configuration options in bash.
>>
>> Good Luck,
>> DoN.

>
> Thank you for quick reply. I replaced bash with ksh, but with same
> result, CTRL+C is working fine directly in shell, but not in tail (to
> exit tail). I have to use CTRL+Z and then kill -9 to stop tail
>
> But, I discovered, that if I run tail as root, it's working fine (I
> can stop tail with CTRL+C).
>
> So I dont know answers to these questions:
> - If CTRL+C is working fine in shell, shall the setting be fine also
> for tail? I, hope that yes.
> - Why tail can't be stoped with CTRL+C or kill command (without -9)
> running under user, but is working running under root?
>
> Thank you for any ideas,


If you cannot kill it with 'kill -INT', or 'kill' with no options, you
have something wrong with the system.

If 'kill -INT' works, check the output of 'stty -a' and see if
intr is defined as ^C.

If that works, check to see if ^C is actually making it down the
tty.
typeing 'e' 'c' 'h' 'o' ' ' control-v control-c
should show 'echo ^C'

P.S.
If you're one of those hosers that insists on using 'kill -9'
every time... you might consider finding a new hobby/line of work.
--
Chris Dukes
< elfick> willg: you can't use dell to beat people, it wouldn't stand up
to the strain... much like attacking a tank with a wiffle bat

Sponsored Links
 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 10:02 PM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional