P?ter Kov?cs writes:
> Hi,
> 
> Is there a way to observe the stderr of a process? I've got a Java-based 
> automated test system, in which my Java testcases run as the grand-grand 
> children of the top level test program with stderr and stdout of the 
> testcases being bufferred and processed in a delayed fashion by the processes 
> in between after a batch of testcases has completed. Output buffering by the 
> test system often gets in the way (in cases such as one of the testcases 
> hanging and me wanting to generate a thread dump by sending SIGQUIT to the 
> hanging bottom level process), but would require a significant effort on my 
> part to get rid of.
> 
> I've tried "truss", but it outputs only part of the buffers being written.

Have you tried the "-w" option on truss?  "truss -t\!all -w2" should
do what you're asking.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to