Questions tagged [stderr]

45 questions
0
votes
1 answer

Where does cron store the real-time stderr logs?

I've got a cron job configured to run a command like some-command 2>&1 >/dev/null | tee -a /tmp/some-command.STDERR.$(date +\%Y-\%m-\%d.\%H.\%M) I've also got a tmpreaper cron job that tidies up older logs. Every now and then a process goes haywire…
Chris Conway
  • 111
  • 3
0
votes
1 answer

Can't redirect STDERR or STDOUT to file

I have application written in Go language and it runs in screen (I do not think problem relates to Go language. I believe it uses STDOUT and STDERR) screen -S log_server -d -m go run log_server.go 2 > err3.txt 1 > std3.txt When it crashes I get…
Max
  • 133
  • 1
  • 7
0
votes
1 answer

IIS7 and PHP: Show error messages with all the rest of the output

Okay, this is slowly getting annoying. I'm used to work with Apache Webservers and never had any of these problems. IIS seems to try to be intelligent - or whatever. Here's my situation: My customer wants a PHP website and it is supposed to run on…
BlaM
  • 3,886
  • 5
  • 27
  • 28
0
votes
3 answers

Unix: Delayed stderr display

Is there a way to display errors summary (from stderr) after an application has finished? E.g. rsync with "--progress" displays LOTS of data, including errors. But when it finishes - it just says "there were errors". I want to display everything…
kolypto
  • 11,058
  • 12
  • 54
  • 66
0
votes
2 answers

How to make SCP on Linux output "success" to stdout instead of stderr?

We have a cron job that sends stuff to another company using SCP. The command look like this: 10 0 * * * ssh USER@LOCAL-SERVER 'scp -q ~/some/dir/* REMOTE_SERVER:/other/dir/' >> ~/log/some.log This was setup by someone else. Now my problem is that…
monster
  • 618
  • 3
  • 10
  • 17
0
votes
1 answer

Suppress EXT3-fs warning on mount

I am familiar with output suppress on Unix machines, ie: cat /file/that/doesnt/exist > /dev/null 2>& However I can't seem to suppress the output of mount when an ext3 filesystem is mounted for the nth time, and it recommends an fsck. As it happens,…
tjbp
  • 193
  • 3
  • 6
0
votes
1 answer

Send STDERR to console and file, STDOUT to file only

I have some script with STDOUT and STDERR output. By default, both STDOUT and STDERR goes to console: ./script.sh I can redirect STDOUT to file, leaving STDERR output in console: ./script.sh > log.txt I can redirect both STDOUT + STDERR to same…
AntonioK
  • 581
  • 2
  • 9
  • 25
0
votes
0 answers

Is it possible to preprocess stderr to obfuscate sensitive data

Let's consider a server with a lot of applications running and potentially emitting errors to stderr. Those applications being heterogeneous, it is impossible to guarantee that none of them emit sensitive information to the standard streams - it…
Eric MORAND
  • 293
  • 2
  • 8
0
votes
0 answers

assign result and status code from wget to variables

Can I get the response and status code and assign them to variables? # wget https://www.google.com --quiet --server-response 1> >(body=$( >(grep HTTP | awk '{print $2}' | statusCode=$(
0
votes
0 answers

Docker doesn't show information on STDERR

I am trying to send the apache error logs to STDERR inside a docker container. Here's my site-config.conf file regarding the logs: ErrorLog ${APACHE_LOG_DIR}/test_error.log CustomLog ${APACHE_LOG_DIR}/test_access.log…
Tojas
  • 115
  • 6
0
votes
1 answer

Linux shell: Pipe stderr and stdout to one file AND to individual files at the same time (using tee?)

I would like to form a pipe-stream that captures stdout to one file and stderr to another file AND both in a third file (so also the complete terminal output is in one file) somehow like this: process ----+-- --- + --- stdlog.txt …
0
votes
2 answers

How to suppress `gcloud compute firewall-rules update` output when there are no errors?

I have a bash script running as cron job which has some gcloud commands in it. eg. gcloud compute firewall-rules update allow-ssh--source-ranges=$(echo "${mylocations[@]}" | tr ' ' ',') I have the crontab entry redirecting stdout to /dev/null, so…
paradroid
  • 868
  • 5
  • 15
  • 29
0
votes
1 answer

Unable to write to `stderr` or `stdout` from Kubernetes pod to pod logs

I'm trying to debug why my application logs aren't being picked up by Promtail for ingestion into Loki. In order to exclude the complexities of my PHP application logging being the culprit, I'm simply trying to print a message to the stderr stream…
Alex
  • 101
  • 5
-1
votes
1 answer

stdout and stderr from bash execution to other machine?

Is it possible to send stderr or stdout from a linux machine to ubuntu linux machine using at best wget or other common package at worse ( hopefully not ssh access ) ? So far i can find a way to "stream" stdout and stderr to other machine.
eugeneK
  • 410
  • 2
  • 8
  • 18
-1
votes
1 answer

autostart rc.local 2>&1 redirect, 'open /dev/tty: No such device or address'

I'm trying to execute this command with rc.local: wget http://address/file -P /root/ 2>&1 | stdbuf -o0 awk '/[.] +[0-9][0-9]?[0-9]?%/ { print substr($0,63,3) }' | whiptail --gauge "Progress" 6 78 0 Above command shows percentage of download some…
1 2
3