I have a "call home" script that detects an
errpt -a -1 -"Error on Hostname" type of entry into file errpt.dta and sends a copy of that file to a Qmail Server in a mailer.dta file.
Here's my problem - If a hardware error occurs in the "errpt" on ClientA the email is sent as it should to the...
I really didn't think I'd have this resolved before Turkey Day - so I really appreciate ALL of your hard work -
I believe I might owe an apology to everyone involved by not presenting the file contents in the format as it was as opposed to getting it to fit in the "preview post" screens. Who...
I tried PHVs method and I added the following line to the script:
+14 RS="[\r\n]"
it seems to work - except it prints all those unwanted lines:
here's what the first few lines look like:
# of fields is 1 # of fields is 1 # of fields is 1 # of fields is 1
# of fields is 1 # of...
One more NOTE: the previous post showed the file contents resulting from the usage of the "more" command - for example:
Command run: more BackUpCalc
Here is the format of the same file resulting from the "pg" command - example: NOTE: there are no "^M" Control-Ms.
Command run: pg...
Let's see if this helps - when I originally cut & pasted the "BackUpCalc" file contents, I altered the format to fit the page - here it is with no formatting:
NOTE: I believe the " ^M " - Control-M, indicate "NewLine" - again, this is a SYSBACK-generated file...
I wish I could say it worked - but here's what I get with your first script:
Command run: gawk -f CalcTimeSpeed2 BackUpCalc
Estimated size: 131072 MB
Actual size: 131112 MB
gawk: CalcTimeSpeed2:38: (FILENAME=BackUpCalc FNR=96)
fatal: division by zero attempted
NOTE: I also tried...
It's still not working - of course I copy and pasted your program to "CalcTimeSpeed" as opposed to writing it. I downloaded gawk ver 3.1.4 and get the following:
Command run: gawk -f CalcTimeSpeed BackUpCalc
Estimated size: 131072 MB
Actual size: 131112 MB...
Almost! When I save your script to "CalcTimeSpeed" and redirect output to "BackUpCalc", it actually prints out the entire log file - which is a duplicate of what I already have and I do not need that. It then tags the calcs on to the bottom of the file. It does NOT calculate the "Average of...
I have an Input file – InFileA containing some info:
FIRST NOTE: There are many more lines to this file than printed below, but they are mostly between the “0 and 100” under the “% Complete” column. :
SECOND NOTE: the notification Backing up / filesystem .. occurs throughout the 0 and 100 “%...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.