This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: tee not terminated
 
Similar Threads
How to log System.out.println in iplanet ?
Creating Platform independent scripts(Solaris and Linux)
How to capture shell scripts ouput to a log file .
Java and Shell scripts
error starting up 2nd instance of tomcat