The stderr tag has no wiki summary.
3
votes
1answer
58 views
Why can I see password prompts through redirecting output?
So, I've got a command that I'm issuing that is essentially 'ssh'ing into various hosts:
command 2&>1 | grep "desired output"
Every once in a while, in the midst of the command, it'll run ...
1
vote
1answer
59 views
Is it possible to send the output of -w and -o Curl streams to different files? How?
I'd like to run a curl command,
grep the output (response payload) for some keywords,
then also print some metrics via the -w option.
I think this would be easy to do if I could direct the -o ...
1
vote
1answer
128 views
Redirecting to /dev/null and a file at the same time
I'm trying to execute the following command:
find . -name ".[ch]" | xargs grep -in pattern > file
There are some errors that are printed on stderr because a few files are not found. How can I ...
1
vote
3answers
387 views
Determine if output is stdout or stderr
How can I determine if what a process is outputting is stdout or stderr?
3
votes
2answers
209 views
Missing segfault output in Linux terminal when running with “&”
I am debugging an application that has to run with other components. I am wrapping everything in a script:
#!/bin/bash
./component1 > 1.log &
./my_application &
./component2 > 2.log ...
0
votes
0answers
632 views
bash: redirect the stderr/stdout of a running process?
I have a running process running in a bash terminal that is printing some prompt, and I would like to send it to the background with the stderr/stdout prompt that is printing either redirected to ...
1
vote
6answers
419 views
Linux less behavior and stderr
I'm watching the output of my complicated command with less, problem is the stderr gets lost. stderr lines normally get listed inbetween stdout lines inside less. I would like them to be printed to ...
0
votes
1answer
173 views
Linux : Rotating log buffer with output redirection
I have an application that prints errors on stderr. I can redirect that output to a file with
app 2> log.txt
(Un)fortunately I log tons of information. I'd like log.txt to not grow too much, or ...
1
vote
1answer
66 views
Formatting bash errors
I am using Fedora 14 and when I am executing a file:
#!/bin/bash
asd #assuming this command does not exist
I am getting following error:
/path/to/file: line 2: asd: command not found
I want to ...
3
votes
1answer
835 views
PowerShell Tee questions
I use this command to see output both on console and file:
powershell -command "my_command_1 | tee ('logs\{0}.log' -f (Get-Date -format 'yyyy.MM.dd-HH.mm'))"
powershell -command "my_command_2 | tee ...
2
votes
1answer
1k views
How to tee to stderr? (multiple sinks in one pipeline)
some_source | (tee /dev/stderr | sink_1) 2>&1 | sink_2
Seems to fail.
How to do it right without of any temporaries?
2
votes
2answers
2k views
Using powershell call native command-line app and capture STDERR
I'm using a port of a cygwin tool on Windows which writes normal status messages to STRERR. This produces ugly output when run from PowerShell:
PS> dos2unix.exe -n StartApp.sh StartApp_fixed.sh
...
0
votes
2answers
252 views
pipe a program into less
I'm taking the dive into setting up and learning git and at the same time learning bash. I'm trying to do something simple as view the help section of
$ git config
unfortunately, when I type that ...
8
votes
3answers
7k views
cURL: how to suppress strange output when redirecting?
I'm trying to print just the verbose sections of a cURL request (which are sent to stderr) from the bash shell.
But when I redirect stdout like this:
curl -v http://somehost/somepage > /dev/null
...
1
vote
1answer
1k views
How to I configure Eclipse PDT 2.1 to display PHP CLI output in the console?
Starting with a recent version of Eclipse PDT, the standard out and standard error from executed PHP CLI code doesn't appear in the console anymore. (It still shows up in the Debug-perspective in the ...
6
votes
5answers
1k views
Immediately tell which output was sent to stderr
When automating a task, it is sensible to test it first manually. It would be helpful, though, if any data going to stderr was immediately recognizeable as such, and distinguishable from the data ...