aspose file tools*
The moose likes Linux / UNIX and the fly likes tee not terminated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "tee not terminated" Watch "tee not terminated" New topic
Author

tee not terminated

Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi,
I am executing the following commands in ksh script:
main1.sh
--------
echo "Start.."
run_sh 2>&1 | tee -a outputfile
echo "Done."
run_sh
------
echo "start run_sh"
my_no_ending_program &
echo "End run_sh"
The output would only stop at "End run_sh" which means run_sh script
is fully executed. But it just would print out "Done." and end the
main script.
Anyone has any pointer and advice to workaround this problem? Thanks.

MSM
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I can't quite understand what you want this to do or what it is actually doing. Please show us the sequence of output messages you expect, end the sequence of output messages you got. Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
Hi,
The sequence of print statements should be like
this:
Start..
start run_sh
End run_sh
Done
What is the sequence you are getting?
Thanks


Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Mahesh Mamani
Ranch Hand

Joined: Jun 25, 2001
Posts: 110
Hi,
The last statement "Done." is not ouputted

MSM
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tee not terminated