I am trying to run a command oggenc.exe and retrieve the output status (in this case percentage complete) but am having trouble doing so. I can't work out how to do it. off course I can run system("oggenc $file"); but I want to be able to extract the percent complete so I can print $status as a percent or something. any help/ideas much appreciated.