Questions tagged [stdout]

71 questions
3
votes
2 answers

logging/capturing STDERR/STDOUT on Amazon EC2

I'm looking for a solution that would allow me to automatically capture the STDOUT/STDERR of a process running on Amazon EC2, and send it (remotely) to another server. Sound simple, except: I will be using spot-instances, which means I don't…
3
votes
1 answer

Forcing command on ssh's authorized_keys merges STDOUT and STDERR

I've been working to have a script in a centralized server to do some things and output a .tar.gz file (see redirect temporarily STDOUT to another file descriptor, but still to screen). I also have exchanged ssh keys, so now from a client machine I…
Carlos Campderrós
  • 773
  • 2
  • 6
  • 17
3
votes
2 answers

Linux Pipe, Warning Messages, stdout

This is probably the best place to ask the question in its simplest form. I am writing a script which takes output of a command and puts it into a variable. After some debugging I figured out the command when it errors does not goto stdout but to…
jinanwow
  • 443
  • 6
  • 15
3
votes
1 answer

Showing message to the user during a Debian unattended preseeded installation

During the late_command step of an unattended installation, I'm running a shell script : d-i preseed/late_command string in-target /bin/sh -c './execute-script.sh' When the late_command step is reached, the UI (blue background, grey window) displays…
Bil5
  • 153
  • 5
2
votes
3 answers

Suppress GPG "Reading passphrase from file descriptor 0" message

Simply, how can I make GPG not print that message? Here are the commands I'm using: echo "test input" > test.in echo "test" | gpg -q -c --passphrase-fd 0 --output test.enc --yes --force-mdc test.in echo "test" | gpg -q -d --passphrase-fd 0 test.enc…
Paul Tarjan
  • 569
  • 3
  • 8
  • 17
2
votes
1 answer

Tomcat has stopped generating stdout logs

We have tomcat server in our production environment. Suddenly tomcat has stopped generating stdout logs. Last generated log by tomcat is one month ago and the size of stdout log file is 5006 KB. What is the reason behind there is no stdout log…
Pawan Patil
  • 121
  • 1
  • 5
2
votes
2 answers

Unable to channel docker-registry stdout to log file

I've been trying (rather futilely) this afternoon to try and stop docker-registry from writing to stdout but rather a log but I think the underlying Python is creating processes which seem to bypass all efforts of channelling to a log. I've tried…
2
votes
2 answers

Log rotate log from standard out

I have a program which takes an argument to allow extra debug from a piece of hardware we use. The log is just written to standard out so normally we just pipe the standard out to a file i.e. ./myprog -AddDebug > myfile.txt, however we are now…
Boardy
  • 258
  • 1
  • 4
  • 23
2
votes
2 answers

Windows cmd stderr redirection to stdout while keeping output to stderr?

Is there a way in Windows 7 cmd shell to redirect the stderr to stdout while keeping the stderr stream intact? For example, I have a program that outputs to stderr and stdout the following message TO STDOUT TO STDERR I want to have two files…
Stecy
  • 122
  • 1
  • 2
  • 6
2
votes
2 answers

Unix wrapper to make any binary accept stdin/stdout redirection

This is a common situation: you want to include command 'foo' as part of a pipeline, but unfortunately command 'foo' only accepts actual filenames for I/O and does not read/write from stdin/stdout. I know that there's an Unix command which acts as…
Jon Smark
  • 121
  • 2
2
votes
3 answers

redirect temporarily STDOUT to another file descriptor, but still to screen

I'm making a script that executes some commands inside, and these commands show some output on STDOUT (and STDERR as well, but that's no problem). I need that my script generates a .tar.gz file to STDOUT, so the output of some commands executed in…
Carlos Campderrós
  • 773
  • 2
  • 6
  • 17
2
votes
2 answers

Prefix standard output before piping to a command

On Linux (Debian), how can I prefix the standard output of a command with one or several lines before piping it to a second command? This is for mailing the output of a command using sendmail like so: pflogsumm | sendmail
I cannot…
OG Dude
  • 121
  • 2
2
votes
1 answer

Append stdout to file, but continue to output to console

On linux/bash I'd like to append stdout of a command to a file, but not redirect it (i.e. I want it to to go to both console and file). Any clues?
Joel
  • 469
  • 2
  • 6
  • 13
2
votes
4 answers

Is there a simple command-line HTTP proxy that outputs to STDOUT?

Is there a command-line HTTP proxy that outputs to STDOUT so I can use it with Unix pipes? I want to do something like this: Start the proxy at the command-line: $ proxy -p 8888 | grep "Text I'm interested in" > ~/my_log.txt Configure my browser…
richardkmiller
  • 255
  • 2
  • 12
2
votes
1 answer

CentOS 5.3, Perl, bash commands, Hide ALL output to screen

I am running the following command: [user@server ~]$ /usr/sbin/ntpdate -d IPREMOVEDFORSECURITY | egrep 'transmit timestamp' | tail -1 | awk '{print $4, $5, $6, $7, $8}' host found : HOSTREMOVEDFORSECURITY Tue, Feb 15 2011 12:38:38.321 So the issue…
Garrett
  • 23
  • 2