Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I run a script with nohup, the output is forced to the out.log file by default; is there a way to force the output to the screen instead of the file? I need to be able to see when my script gives me a "process started" message, and I don't want to clog up the system with log files.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

That would defeat the purpose of nohup, use tail -f out.log instead.

share|improve this answer
    
Ahh, I see. I only really need to check output for a little while until I get a "JBoss started" message, so a tail should work. It wouldn't be a hassle to delete the log manually. Thanks. –  Sean D Nov 9 '10 at 18:35

If you run bash, you can put it into the background, and then use disown to have it not shut down when bash closes. So your output is to the terminal, but you can close the terminal and still have your app run.

share|improve this answer
    
disown is perfect! many thanks! –  Ayoubi Mar 4 '12 at 17:24

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.