I'm using the following commands to run my application:
screen node cam.js
What I want to do is write the output to a log file to catch a certain error that's happening and I need to have logs to find the cause of it. I tried using:
screen node cam.js > output.txt
and
screen "node cam.js > output.txt"
I think it's not working because of screen. What am I missing? I'm not really that experienced with Ubuntu, ofcourse I tried using Google, but I wouldn't ask if I couldn't find or without trying anything!
screen? Screen provides the ability to use and switch between multiple consoles within one. I suppose you want to run that script persistently, then look at program called nohupman nohup. But just for testing, if there is a problem in output, run node directlynode cam.js > output.txt. – week Dec 17 '12 at 18:09