The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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-27-2007 02:37 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 04:24 PM
Reading console output Blaster999 High Level Programming 1 06-06-2004 09:48 AM
Can I avoid the standard output from kill command pguinal Shell Programming and Scripting 1 03-07-2002 10:21 AM
console output messages boristhespider UNIX for Dummies Questions & Answers 2 08-28-2001 06:32 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-05-2005
srinivsa srinivsa is offline
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.
  #2 (permalink)  
Old 05-05-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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.
  #3 (permalink)  
Old 04-05-2009
usha rao usha rao is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 70
Hi Perderabo,
I too have the same problem as srinivsa has.
Isn't there any way to redirect the output of thread dump to some file rather than stdout.
Actually i have a script where according to some conditions some pid's are generated and then i have to take thread dump in some file which will be used by other program for further analysis,and all this is done inside a for loop.So i want the thread dump to be placed in some output file under /tmp or something.
Could you please help.
Thanks
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0