Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"`

Tags
aix, script file date end, shell scripts

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-09-2010
problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"`

Its very critical and 'm in need to schedule this on my crontab so that the output can be monitored by a tool

I have written the command below to redirect the error which has the output redirected to the file gincle_lol.log.

Code:
echo "---" >>/gingle/gincle_lol.log
date >>/gingle/gincle_lol.log
errpt -d H -T PERM -s `date +"%m%d%H00%y"` >>/gingle/gincle_lol.log
echo "--" >>/gingle/gincle_lol.log

I want to know what will be the output, because i have written this command to redirect the output which has hardware Permanent errors from the current time -1

Output
This will give you the output of the errors happened current time -1
Eg: If the job is run @ 6:00 then -1 the output will contain the errors between 5 and 6

Code:
7=> 6-7
8=> 7-8
9=> 8-9
10=>9-10

Note: The job is scheduled every 1 hour


Current me if ‘m wrong…
Please help me on this front... Its critical..

Moderator's Comments:
problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"` Use code tags, ty.

Last edited by zaxxon; 07-09-2010 at 10:24 AM.. Reason: code tags
# 2  
Old 07-09-2010
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Understanding output of "last" command kitykitykity UNIX for Advanced & Expert Users 2 02-24-2015 01:02 PM
Format output from the file to extract "date" section coolguyamy Shell Programming and Scripting 4 12-16-2010 02:54 PM
Problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"` Sounddappan AIX 0 07-09-2010 10:32 AM
"Join" or "Merge" more than 2 files into single output based on common key (column) Katabatic Shell Programming and Scripting 1 05-20-2010 11:41 AM
Explanation of "total" field in "ls -l" command output proactiveaditya UNIX for Dummies Questions & Answers 1 04-18-2010 01:40 AM
A question/problem about oracle "tns listener" and "enterprise manager" talipk UNIX for Advanced & Expert Users 1 12-03-2008 06:55 AM
A question/problem about oracle "tns listener" and "enterprise manager" talipk UNIX and Linux Applications 0 12-01-2008 02:08 PM
add seconds to: date"|"time"|"HHMMSS anaconga UNIX for Advanced & Expert Users 3 08-27-2008 01:17 PM
Sorting problem "sort -k 16,29 sample.txt > output.txt" ganapati Shell Programming and Scripting 3 08-01-2006 05:55 AM
Weird problem with output from "date '+3600*%H+60*%M+%S' " m223464 Shell Programming and Scripting 5 02-16-2006 11:22 AM


All times are GMT -4. The time now is 05:43 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password