Hi folks, i'm trying to save an output from a linux command like this "dvbv5-zap -c channels.conf 472000000 -m --timeout=10 >> channels" but when i open the file channels nothing has been written on it. Can you help me?
dvbv5-zap -c channels.conf 472000000 -m --timeout=10 2>&1 channels
So when i do instead "dvbv5-scan initial_dvbv5.scan -F > output.scan" and what appears in command line is:Is it actually outputting something? If so, maybe it's sending to STDERR instead of STDOUT which is what it looks like you're tryingto collect.
To write all standard output file descriptors to the same place, use "2>&1" instead of ">>"
So if you're trying to write to a file called channels.
Code:dvbv5-zap -c channels.conf 472000000 -m --timeout=10 2>&1 channels
./mycommand > output.txt
./mycommand 2>&1 output.txt
./mycommand >stdout.ext 2>stderr.txt