Skip to main content

Questions tagged [stderr]

Standard error is another output stream typically used by programs to output error messages or diagnostics.

1 vote
1 answer
126 views

Assume the following C snippet showing a piece of error handling: #include <sysexits.h> #include <stdio.h> … int main(int argc, char argv*[]) { int retval=0; … if(3!=argc) { /* wrong ...
AlMa0r's user avatar
  • 1
1 vote
0 answers
47 views

I am getting this message on the console of my AlmaLinux 9 host: [31178.107847] (NULL device *): port 1 already used(dev 6/1/4 stat 2 I've tried to google pieces of the message but getting no where. ...
TSG's user avatar
  • 1,993
10 votes
5 answers
2k views

In this context, an 'exception' is an undesirable scenario, which could be: a code-level signal (like SIGSEGV), incorrect ways of launching an app (like launching a command-line app as a daemon) etc. ...
NightFuryLxD's user avatar
0 votes
1 answer
79 views

I want to do a simple grep on dumpe2fs output but I keep seeing dumpe2fs 1.46.5 (30-Dec-2021) showing up after my grep: $ sudo dumpe2fs -h /dev/sdb2 | grep 'Block count:' dumpe2fs 1.46.5 (30-Dec-2021) ...
kaptan's user avatar
  • 335
0 votes
2 answers
548 views

I'm redirecting stdout and stderr to the same file by using > and >> respectively: rsync -a --exclude cache/ src_folder/ target_folder/ 1>out_err.log 2>>out_err.log However the ...
bit's user avatar
  • 1,196
2 votes
1 answer
139 views

In zsh, how can I annotate each line in a file to which both stdout and stderr have been redirected with the line's source (stdout or stderr)? I want output with the source name prepended to the line, ...
XDR's user avatar
  • 471
0 votes
1 answer
103 views

Having a bash script that essential only doing: mbuffer --md5 -i dummy.tar -o /dev/null A user of this script wants to use tee and store the output messages in a log file. ./script.sh 2>&1 | ...
TopCatSE's user avatar
0 votes
1 answer
215 views

I want to extend question How to store standard error in a variable and get general solution (bash function or functions) to extract from the called function/command together with standard error also ...
Anton Samokat's user avatar
1 vote
2 answers
2k views

I have a bash script like this: #!/bin/bash while read -r -a line do ... parse $line in some way done This script is executed by piping the command from another program: some-random-program | ...
lord_nimon's user avatar
4 votes
0 answers
269 views

The following code is on macOS as part of /etc/bashrc_Apple_Terminal, in order to save and restore the shell state across all open windows and tabs (note that this is therefore the very old bash 3.2....
Andrew Jaffe's user avatar
3 votes
3 answers
2k views

Where are stdin, stdout, and stderr (the fds) first opened? Is it the kernel that does it? And when and where are the symlinks /dev/std{in,out,err} made? Where is the code that does it? I assume it is ...
Elfen Dew's user avatar
0 votes
1 answer
335 views

What I would want: #!/bin/csh # call /myscriptpath/myscript.any and redirect 2>&1 and get retval and output set my_msg = `/myscriptpath/myscript.any` set my_ret = `echo $?` How to capture the ...
paulj's user avatar
  • 238
1 vote
1 answer
107 views

We are using fuse to find the logs associated to particular port. fuser /test/log* This results in a list of logs associated with port How to find the number of lines on the output? I tried with |wc -...
Varja's user avatar
  • 69
4 votes
1 answer
1k views

I run this command ss -tulpnoea|grep -i water|grep -v 127 Failed to find cgroup2 mount Failed to find cgroup2 mount Failed to find cgroup2 mount Failed to find cgroup2 mount Failed to find cgroup2 ...
elbarna's user avatar
  • 14.4k
0 votes
0 answers
128 views

I am backing small databases from several websites and sending the admin an email with the results. I have already directed stderr to send the complete error in the email. Is there a way I can ...
Rohit Gupta's user avatar

15 30 50 per page
1
2 3 4 5
17