<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3019.2500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all, 
<P>I'm using the "system" command to do an untarring of a file.tar.gz file in my 
C program. However, I would like to display some status information like "10 % 
Completed". I've written some code to calculate the percentage. However, the 
code could only be runned after the "system" command finished untarring my 
zipped file. e.g. 
<P>system("tar zxf file.tar.gz");<BR>do<BR>{<BR>printf("%d %% Completed", 
percent);<BR>}while (!finished) 
<P>Therefore, the printf will always print 100 % Completed. Is there any way to 
let the unzipping continue at background and return to print the completion 
status? </P></FONT></DIV></BODY></HTML>