sudo port upgrade outdated > PortUpgradeOutdated.log

Ryan Schmidt ryandesign at macports.org
Thu Jan 3 18:27:43 PST 2008


On Jan 3, 2008, at 20:21, Charlse Darwin wrote:

> On Jan 3, 2008, at 9:17 PM, Ryan Schmidt wrote:
>
>> On Jan 3, 2008, at 14:18, Charlse Darwin wrote:
>>
>>> How do I get the port to write the output to a log file? `$ sudo  
>>> port upgrade outdated > PortUpgradeOutdated.log' didn't fly well.
>>
>> In what way didn't it fly?
>
> <PortUpgradeInstalled.log>
>
> It didn't log the whole thing…


I can't quite tell, looking at that, what's missing. Perhaps you're  
wanting to capture text from stderr as well as stdout? If so, try:

$ sudo port upgrade outdated &> PortUpgradeOutdated.log



More information about the macports-users mailing list