Hi ML!

I've got a problem:
I want to write a little prog that emerges automatically a few packages (e.g. a 'emerge -uUD world') but skips failing packages and at the end shows me which packages were emerged succesfully and which not.


So, my problem is the following:
I use Tcl as program language and use the following to extract the stdout and stderr from the emerge process:


set stdoutChannel [open "| emerge -uUD $package 2>@$stderrChannel" RDWR]

So I have the stdout in $stdoutChannel and stderr in $stderrChannel, but I have no access to the exit code of the emerge. Or I do not know how to get the exit code.

Finally, my question:
How can I know if the emerge has finished successfully or if it failed? Is there any string that emerge prints out at the very end of a successful emerge process or is there a method that gives me the status of the last emerge?


Thanks for every suggestion!
Bye
Stephan


-- [EMAIL PROTECTED] mailing list



Reply via email to