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
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!