sudo port upgrade outdated > PortUpgradeOutdated.log

Charlse Darwin macports.users at gmail.com
Thu Jan 3 18:35:32 PST 2008


It works! Thanks.
I have a daemon to upgrade my ports, set for after midnight. Now I  
can have a log of what's happened the morning after.

On Jan 3, 2008, at 9:27 PM, Ryan Schmidt wrote:

> 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