03-16-2017
Hi,
of course, i've corrected the output as it should be.
thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi! I have a simple question about using a for loop.
I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ;
I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies
2. Shell Programming and Scripting
Hi guys, i have been struggling to achieve the following and therefor looking for some help.
I am trying to write something that will summerize the following output from my switches for daily totals.
Basicly if $1 $2 $3 doesnt change, we can keep adding up $4. Probably would use a awk print end... (3 Replies)
Discussion started by: Wratholix
3 Replies
3. Shell Programming and Scripting
hi i am using bash shell to perform some subraction. here is what i have:
i have a while loop and am using i as a counter.
diff= `expr ${ARRAY1} - ${ARRAY2}`
for example array1 has -0.7145 and array2 has -0.7041.
when i try the above command, i get expr: non-numeric argument. any... (6 Replies)
Discussion started by: npatwardhan
6 Replies
4. UNIX for Dummies Questions & Answers
Hello there
Been using Unix bash scripting for two days now so am very new to this. I am currently doing a project now and i'm basically making a noughts and crosses game (or tic tac toe).
I have created the board using an array. When I try and check to see if the array is empty using an If... (3 Replies)
Discussion started by: ChrisHoogie
3 Replies
5. Shell Programming and Scripting
Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date :
for i in `ls $replog/*.gz`
do
echo " $i "
`echo $i date +%d:%m:%Y`
`echo $datee `>> $replog/mrnet.log
mv $i /var/log/vieux-logs
done
I need to echo... (10 Replies)
Discussion started by: Dabless
10 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to monitor CPU load of few processes, with the same name.
The output that I get from top is the following
28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89 /opt/ppp//h264rtptranscoder.bin --videoPort=14504 --audioPort=14505
27589 root 20 0 1060m 23m... (3 Replies)
Discussion started by: liviusbr
3 Replies
7. Shell Programming and Scripting
Hello everyone,
I need your assistance with bash.
I want to sum up some numbers, that's not the big problem i think, but the values i want to some depending on another number.
For example, I have a file with some rows of content.
Number 1, Number 2, other content.
I want to sum up number... (4 Replies)
Discussion started by: Bruder_Bruno
4 Replies
8. UNIX for Beginners Questions & Answers
Hi everyone, first time visitor to these forums here.
Keeping a long story short I've been attempting to learn how to code in bash. I have VERY little previous experience with coding languages besides simply copying and pasting batch scripts for Windows. So, with that in mind I've followed a... (4 Replies)
Discussion started by: Meta
4 Replies
9. UNIX for Beginners Questions & Answers
Hello, guys !
I need a little help :)
Lets say i have log files with "n" calls like this one :
""""" <+825080825462>","+825080825462","60197774588","from-internal",
"SIP/518-00013e14","SIP/eu.test.com_outgoing-00013e15","Dial",... (4 Replies)
Discussion started by: dragonfly85
4 Replies
10. Shell Programming and Scripting
I am sharing a code snippet.
for (( i=0; i<=$(( $count -1 )); i++ ))
do
first=${barr2}
search=${barr1}
echo $first
echo "loop begins"
for (( j=0; j<=5000; j++ ))
do
if } == $search ]]; then
echo $j
break;
fi
done
second=${harr2}
echo $second (2 Replies)
Discussion started by: ngabrani
2 Replies
LEARN ABOUT DEBIAN
edac-util
EDAC-UTIL(1) EDAC error reporting utility EDAC-UTIL(1)
NAME
edac-util - EDAC error reporting utility.
SYNOPSIS
edac-util [OPTION]...
DESCRIPTION
The edac-util program reads information from EDAC (Error Detection and Correction) drivers in the kernel, using files exported by these
drivers in sysfs. With no options, edac-util will report any uncorrected error (UE) or corrected error (CE) information recorded by EDAC,
along with any DIMM label information registered with EDAC.
OPTIONS
-h, --help
Display a summary of the command-line options.
-q, --quiet
Quiet mode. For some reports, edac-util will report corrected and uncorrected error counts for all MC, csrow, and channel combina-
tions, even if the current count of errors is zero. The --quiet flag will suppress the display of any locations with zero errors,
thus creating a more terse report. No output will be generated if there are zero total errors currently recorded by EDAC. Addition-
ally, the use of --quiet will suppress all informational and debug messages, displaying only fatal errors.
-v, --verbose
Increase verbosity. Multiple -v's may be used.
-s, --status
Displays the current status of EDAC drivers. edac-util will report whether it detects that EDAC drivers are loaded, and the number
of memory controllers (MCs) found in sysfs. In verbose mode, the MC id and name of each controller will also be printed.
-r, --report=report,...
Specify the report to generate. Currently, the available reports are default, simple, full, ue, and ce. These reports are detailed
in the EDAC REPORTS section below. More than one report may be specified in a comma-separated list.
EDAC REPORTS
default
The default edac-util report is generated when the program is run without any options. If there are no errors logged by EDAC, this
report will display "No errors to report." to stdout. Otherwise, error counts for each MC, csrow, channel combination with attrib-
uted errors are displayed, along with corresponding DIMM labels, if these labels have been registered in sysfs.
The default report will also display any errors that do not have any DIMM information. These errors occur when errors are reported
in the memory controller overflow register, indicating that more than one error occurred during a given EDAC poll cycle. It is usu-
ally obvious from which DIMM locations these errors were generated.
simple The simple report reports total corrected and uncorrected errors for each MC detected on the system. It also displays a tally of
total errors. With the --quiet option, only non-zero error counts are displayed.
full The full report generates a line of output for every MC, csrow, channel combination found in EDAC sysfs. This includes counts of
errors with no information ("noinfo" errors). Output is of the form:
MC:(csrow|noinfo):(label|all):(UE|CE):count
With the --quiet option, only non-zero error counts will be displayed.
ue This report simply displays the total number of Uncorrected Errors (UEs) detected on the system. With the --quiet option, output
will be suppressed unless there are 1 or more errors to report.
ce This report simply displays the total number of Corrected Errors (CEs) detected on the system. With the --quiet option, output will
be suppressed unless there are 1 or more errors to report.
SEE ALSO
edac(3), edac-ctl(8)
edac-utils-0.18-1 2011-11-09 EDAC-UTIL(1)