Questions tagged [stderr]
The stderr tag has no summary.
49 questions
4
votes
2
answers
888
views
How to capture the “time=” parameter from ffmpeg output?
I am using EndeavourOS and if I play audio with the command ffmpeg -i test.flac -f alsa default, the terminal shows this sort of output:
size=N/A time=00:00:21.31 bitrate=N/A speed=1.22x
I would ...
0
votes
0
answers
2k
views
PHP-FPM on Apache log issue
I am having trouble finding the cause of my php-fpm process logging its error output to the same location as the script result.
I have an Apache server which passes requests to the php-fpm process ...
3
votes
1
answer
7k
views
zsh: stdout and stderr both to console AND log
I'm converting a script from bash to zsh and have been floundering for days with the output. I want the stdout and stderr to both go to both the console and a log file. I've tried everything I can ...
1
vote
1
answer
3k
views
Batch: How to show only errors in console output (ie redirect STDOUT to NUL and STDERR to CON)?
I'm trying to figure out how to show only errors on the console output (and suppress all other output) without redirecting to a file or using TEE, etc. I'm trying to get this to work for single ...
1
vote
2
answers
3k
views
batch script - How to conditionally redirect output stream(s)
In summary, the goal is twofold:
Create a logfile that only contains commands that have failed, plus the error messages those commands generate.
Prevent console output (success or failure), except ...
1
vote
1
answer
397
views
How do I fix /dev/stderr pointing to /dev/null instead of current terminal?
How do fix when /dev/stderr is pointing to /dev/null, because of which, all err messages are redirected to /dev/null without using the > operation.
~ tty
/dev/pts/0
~ l /dev/stdout
lrwxrwxrwx ...
10
votes
2
answers
10k
views
ffmpeg less verbose, without hiding progress bar
Without editing and recompiling ffmpeg from source, how can one hide some of the many lines that it prints when it starts encoding, without also hiding its progress bar that updates every second or so ...
1
vote
0
answers
25
views
What is the point of such handle redirection as 1<&2? [duplicate]
According to what is said here:
For example, the following command redirects handle 2 (that is,
STDERR) into handle 1 (that is, STDOUT):
1<&2
I understand why we might need to apply the ...
1
vote
1
answer
383
views
Moreutils' Chronic reports everything in STDOUT, but only when run in cron
I prepared the following script to test chronic & cron:
echo "normal out"
echo "error out" >&2
exit 0
When I run it on normal shell with chronic -ev, output is as ...
1
vote
1
answer
750
views
why isn't putty getting SSH_MSG_CHANNEL_EXTENDED_DATA packets when TTYs are enabled?
Quoting RFC4254 § 6.6. Session Data Transfer,
Data transfer for a session is done using SSH_MSG_CHANNEL_DATA and
SSH_MSG_CHANNEL_EXTENDED_DATA packets and the window mechanism. The
extended data ...
1
vote
1
answer
2k
views
PowerShell Tee-Object also verbose logging
I use Tee-Object to output my command to console and a file. I use this command:
Command 2>&1 | Tee-Object 'myfile.log'
With this command I only get standard and error output in my file. When ...
3
votes
1
answer
185
views
Recalling last command inserts spurious character at the beginning (in Zsh)
The interactions are so complex that I don't know exactly what I'm looking for, but maybe you can still help.
Sometimes, generally after an error (return code > 0), when recalling some last command, ...
0
votes
0
answers
39
views
Pipe second output (errors) in batch [duplicate]
I have a batch file in which I need to pipe an exe's output to a command. However, the output is reading as error messages so it is not piping it. For example:
mycommand.exe > out.txt would have ...
0
votes
0
answers
366
views
Why does the Windows Command Prompt COPY command write error messages to STDOUT not STDERR?
Normally if you try to copy a file that does not exist you get an error message:
C:\temp>copy foo bar
The system cannot find the file specified.
I would expect that error message to be written to ...
49
votes
2
answers
13k
views
why it is 2>&1 and not 2>>&1 to append to a log file
I am redirecting STDOUT and STDERR to a single file, always growing,
so I use always use "append" redirection; this is >>
my command is command >> logfile 2>&1
And it works.
But ...