Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does it even log output? In particular, I'm trying to find out how I can recover those messages about, for example, how to use the updated version of Python, or how to use launchd to start a new app by default. I schedule macports updates so I almost always miss these messages because I'm not sitting in front of my computer when the updates occur.

TIA!

share|improve this question
    
Thank you both for your replies! –  Ali Nabavi Sep 2 '09 at 0:23
    
Starting with MacPorts 1.8.2 (it's in trunk for now) there is a logging mechanism. –  Nerdling Dec 12 '09 at 0:52
    
The logging feature Nerdling referred to will be part of MacPorts 1.9 –  Raim Apr 13 '10 at 14:05

2 Answers 2

up vote 3 down vote accepted

Currently MacPorts has no notion of logging of build activities of a given port or sets of ports, however you can pipe the output (stderr and stdout) to a file for later viewing.

port upgrade outdated 2>&1 >> updates.txt

share|improve this answer
    
Incidentally, you can also use port upgrade outdated &>> updates.txt if that's easier to remember. –  Nerdling Oct 10 '09 at 18:33
2  
I recommend using port upgrade outdated 2>&1 | tee updates.txt which prints to both the terminal and to the file. This allows to see progress. –  Raim Apr 13 '10 at 13:53

I suggest redirecting the output of your executions of port so that you can review the information at a later time.

A cursory find in /opt/local doesn't bring up anything useful.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.