Quantcast
Channel: Admins Goodies » stderr
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 :...

View Article



Image may be NSFW.
Clik here to view.

start sinatra app in background with stdout and stderr redirected(append) to...

I have a sinatra app which I run on my local machine using ruby app.rb. While deploying it on a remote machine via ssh, How do i run it in background and redirect stdout and stderr to a log file. On a...

View Article

Image may be NSFW.
Clik here to view.

tar: kill the error message: ‘tar: Removing leading `/’ from member names’

I run this from a cronjob: tar -czvf /var/backups/svn.tgz /var/svn/* That generates this on stderr: tar: Removing leading `/' from member names I would like to avoid this because it is not a real...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

How can I capture output from LFTP? (Output not written to STDOUT or STDERR?)

I would like get access to progress information from lftp. Currently, I’m using curl like so: curl http://example.com/file -o file -L 2> download.log This writes curl’s progress information to the...

View Article


Image may be NSFW.
Clik here to view.

How to pipe stderr without piping stdout

How do I pipe the standard error stream without piping the standard out stream? I know this command works, but it also writes the standard out. Command 2>&1 | tee -a $LOG How do I get just the...

View Article

Image may be NSFW.
Clik here to view.

bash: print stderr in red color

Is there a way to make bash display stderr messages in red color? command 2> >(while read line; do echo -e "e[01;31m$linee[0m"; done) Check more discussion of this question.

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images