The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Eleminating output to console pflink UNIX for Dummies Questions & Answers 3 02-26-2007 10:37 PM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 01:24 PM
Reading console output Blaster999 High Level Programming 1 06-06-2004 06:48 AM
Can I avoid the standard output from kill command pguinal Shell Programming and Scripting 1 03-07-2002 06:21 AM
console output messages boristhespider UNIX for Dummies Questions & Answers 2 08-28-2001 03:32 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2005
Registered User
 

Join Date: May 2005
Posts: 1
routing kill output from console to file

Hi ,

I am using the following command

kill -3 pid ----which will return the thread dump.

I want redirect this to file.

I tried like the following two ways.

kill -3 9843 >> srini.log
kill -3 9852 >> srini 2>&1

But those two cases are failed

pls let me knwo is there any other way that i can do that...

Thanks in Advance,

srini.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-05-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,356
kill is just a command to send a signal to a process. You are redirecting the output of the kill command itself. What the process does upon reciept of a signal is another matter. So

kill -3 9843 > some.file 2>&1

has no effect on what files process 9843 will write to. If process 9843 is not writing to the files you want, you need to add redirects to that process when it is run.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0