Thread: Pipelining
View Single Post
  #3 (permalink)  
Old 07-18-2005
r2007's Avatar
r2007 r2007 is offline
Registered User
 
Join Date: Jun 2005
Location: China
Posts: 73
Code:
exec 3>&1
RC=$(exec 4>&1;{ proc;echo $? >&4; }|tee -a logfile >&3)
exec 3>&-
echo $RC
Reply With Quote