[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Nasty Hack Example:
start_process(){
        sleep 2
        echo "This is start process"
        RC=1
        echo "$RC" > rc.txt
}
start_process 2>&1 | \
while read line 
do
            echo "$line RC:`cat rc.txt`  \$?:$? 456"
done


Like I said...nasty hack if you've "got to get it going" (think James T voice here).  I'll think about it more (i'm sure the gurus here will think of something WAY better)

K

-- 
"It is not the critic who counts, not the man who points out how the strong man stumbles or where the doer of deeds could have done them better.  The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood, who strives valiantly, who errs and comes up short again and again because there is no effort without error and shortcomings, who knows the great devotion, who spends himself in a worthy cause, who at the best knows in the end the high achievement of triumph and who at worst, if he fails while daring greatly, knows his place shall never be with those timid and cold souls who know neither victory nor defeat."

-Theodore Roosevelt


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00052.html">[ale] VPN (s are) hell</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00054.html">[ale] VPN (s are) hell</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00045.html">[ale] Perplexed by bash</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00041.html">[ale] Wireless DSL?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00053"><strong>Date</strong></a></li>
<li><a href="threads.html#00053"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>