09-13-2010
Traditionally, stdout is used for data while stderr is used for readable messages, including errors and debugging info and statistics.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
-----------
i thought to pass the stderr to the subroutine which writes in a log file..
when i use
&log_message(\*STDERR);
in the log file instead of the error messages, i am getting only this word
____________::GLOB(0x1ab507c)
... (1 Reply)
Discussion started by: sekar sundaram
1 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Shell Programming and Scripting
Doubt regarding using "exec" command to redirect the STDERR to a file. e.g I did it this way.
mystage.sh
#!/bin/sh exec 2>stage.err
....
....
cat stage.err
mv: cannot move `/root/stage' to a subdirectory of itself, `/root/stage_old/stage'
ls: *.zDB: No such file or... (0 Replies)
Discussion started by: snurani
0 Replies
4. Shell Programming and Scripting
I am trying to use one global declaration --> "exec 2>$ERR" to capture all stderr outputs that may occur anywhere in my script.
Then close it at the end of the script using --> "exec 2<&-"
I am using KSH on Solaris 8.
KSH Version M-11/16/88i
If I comment two "exec .." statements in the... (11 Replies)
Discussion started by: kchinnam
11 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Shell Programming and Scripting
Hi, I'm running a program (Python) whose output I would like to redirect to a log. But the program calls a library (that I cannot change), which outputs all sorts of useless information.
I would like to redirect all output from my Python program into this log, except output that matches the... (7 Replies)
Discussion started by: rswindle
7 Replies
7. Shell Programming and Scripting
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
Discussion started by: marcink
2 Replies
8. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT DEBIAN
blkiomon
BLKIOMON(8) BLKIOMON(8)
NAME
blkiomon - monitor block device I/O based o blktrace data
SYNOPSIS
blkiomon -I interval [ -h file ] [ -b file ] [ -D file ] [ -Q path_name -q msg_queue_id -m msg_id ] [ -V ]
DESCRIPTION
blkiomon is a block device I/O monitor. It periodically generates per-device request size and request latency statistics from blktrace
data. It provides histograms as well as data that can be used to calculate min, max, average and variance. For this purpose, it consumes D
and C traces read from stdin.
There are options for binary output and human-readable output to files and stdout. Output to a message queue is supported as well.
There is no need to use blkparse with blkiomon. blkiomon is capable of consuming binary output written to stdout by blktrace.
OPTIONS
-I interval
--interval=interval
Set sample interval
-h file
--human-readable=file
Human-readable output file. Use '-' for stdout.
-b file
--binary=file
Binary output file. Use '-' for stdout.
-D file
--debug=file
Output file for debugging data. Use '-' for stdout.
-Q path_name
--msg-queue=path_name
Sets path_name as path name for existing message queue to be used for binary output.
-q msg_queue_id
--msg-queue-id=msg_queue_id
Sets msg_queue_id as ID for an existing message queue to be used for binary output.
-m msg_id
--msg-id=msg_id
Sets msg_id as message identifier to be used for binary output messages written to an existing message queue.
-V
--version
Print program version.
EXAMPLES
To get I/O statistics for /dev/sdw every 10 seconds for a period of one hour, use the following command:
% blktrace /dev/sdw -a issue -a complete -w 3600 -o - | blkiomon -I 10 -h -
AUTHORS
blkiomon and this man page were written by Martin Peschke.
REPORTING BUGS
Report bugs to <linux-btrace@vger.kernel.org>
COPYRIGHT
Copyright (C) 2008 IBM Corp.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License
<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
btrace (8), blktrace (8), blkparse (1), verify_blkparse (1), blkrawverify (1), btt (1)
July 17, 2008 BLKIOMON(8)