errpt with param for yesterday and today


 
Thread Tools Search this Thread
Operating Systems AIX errpt with param for yesterday and today
# 1  
Old 06-05-2008
errpt with param for yesterday and today

Hi All,

I would like to create a script with "errpt" that will read the date yesterday and today and execute this: "errpt -a -s yesterdaydatetime -e todaydatetime".

For example:

>errpt -a -s 0604000008 -s 0605235908

Note: Time is fixed with start "0000" and end "2359". So read the month, day and year on the system.

Is this possible to create a script without passing a parameter.

Thanks in advance.

Best Regards to all of you,
itik
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX cluster disk usage report generation for yesterday & today and email

HI Team, I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same. #!/bin/bash #Author: ******************* #Description: This script will return the following set of system information: ... (2 Replies)
Discussion started by: Mi4304
2 Replies

2. UNIX for Beginners Questions & Answers

When I run the code yesterday I am getting output,when I run same code today I am getting error?

If run the below code today its creating all directory and getting output files,I f run same code tomorrow I am getting error. can any one give suggestion to sortout this error. OSError: no such file or directory : '062518'My code looks like this import paramiko import sys import os ... (8 Replies)
Discussion started by: haribabu2229
8 Replies

3. Shell Programming and Scripting

[Solved] Replace yesterday date with today's date except from the first line

Hello, I have a file like this: 2012112920121130 12345620121130msABowwiqiq 34477420121129amABamauee e7748420121130ehABeheheei in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies

4. Shell Programming and Scripting

meaning of today=${1:-${today}}

what does today=${1:-${today}} mean??? I saw a script which has these two lines: today=`date '+%y%m%d'` today=${1:-${today}} but both gives the same value for $today user:/export/home/user>today=`date '+%y%m%d'` user:/export/home/user>echo $today 120326... (2 Replies)
Discussion started by: Vidhyaprakash
2 Replies

5. Shell Programming and Scripting

check for param values

I need to check for 4ht parameter values, if they are not in (17,18) in other words if they r not equal to 17 or 18 then exit. can u help pls (4 Replies)
Discussion started by: raopatwari
4 Replies

6. Shell Programming and Scripting

param with awk

Hi All, I have this script: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}' I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3. Please help! ... (3 Replies)
Discussion started by: itik
3 Replies

7. UNIX for Advanced & Expert Users

param with awk

Hi All, I have this script: #!/bin/ksh lsvg -l $1|grep -v $1:|grep -v LV|awk '{print "mklvcopy ",$1," 2 $2 $3"}' I want to pass three param with "vg2 hdisk1 hdisk2" but the output is "mklvcopy lv1 2 $2 $3". I want to pass the hdisk1 and hdisk2 and not the $2 and $3. Please help! ... (1 Reply)
Discussion started by: itik
1 Replies

8. Shell Programming and Scripting

need help on korn passing param

Hi, I need to script this: lsvg -l vg10|grep -v vg10:|grep -v LV|awk '{print "chlv -u 2 ",$1}' > script_vg10.sh So that I could just pass the parameter of the volume group. When I did this on a script: #!/bin/ksh lsvg -l %1|grep -v %1:|grep -v LV|awk '{print "chlv -u 2",$1}' >... (4 Replies)
Discussion started by: itik
4 Replies

9. HP-UX

kernel param listings

Which shows the current kernel settings accurately? kmtune or sysdef. I ask because although some params show the same setting with both, some do not. Example >kmtune | grep nfile nfile 75008 - (15*NPROC+2048) >sysdef | grep nfile nfile 75018 ... (6 Replies)
Discussion started by: theninja
6 Replies

10. UNIX for Dummies Questions & Answers

errpt

Hello World, When I issue the errpt command 1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR C14C511C 0826133303 T H scsi0 ADAPTER ERROR I found these two unusual errors, wat exactly do these mean ? Im on an aix box. Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies
Login or Register to Ask a Question
Weather::Com::DayForecast(3pm)				User Contributed Perl Documentation			    Weather::Com::DayForecast(3pm)

NAME
Weather::Com::DayForecast - class representing a forecast for one day SYNOPSIS
[...] my @locations = $weather_finder->find('Heidelberg'); my $forecast = $locations[0]->forecast(); my $tomorrow = $forecast->day(1); print "Forecast for tomorrow: "; print " - tomorrow it's the ", $tomorrow->date()->date(), " "; print " - sunrise will be at ", $tomorrow->sunrise()->time(), " "; print " - maximum temperature will be ", $tomorrow->high(), " "; DESCRIPTION
Via Weather::Com::DayForecast objects one can access the weather forecast for one specific day. This class will not be updated automatically with each call to one of its methods. You need to call a method of your Weather::Com::Forecast object to get updated objects. CONSTRUCTOR
You usually would not construct an object of this class yourself. This is implicitely done when you call the "day(number of day)" or the "all()" method of a Weather::Com::Forecast object. METHODS
date() Returns a Weather::Com::DateTime object containing the date the forecast is for. high() Returns the maximum temperature that will be reached at daytime. For day 0 (today), this will be 'N/A' when it's after noon... There is a bug in weather.com's date and time mathematics: If you are asking for a location's forecast day 0 and it's short after midnight, day 0 will be "yesterday" and you'll get both, yesterday's daytime forecast and night forecast! I have not investigated this issue further, yet. If anyone has, please inform me! low() Returns the minimum temperature that will be reached at night. sunrise() Returns a Weather::Com::DateTime object containing the time of sunrise. sunset() Returns a Weather::Com::DateTime object containing the time of sunset. day() Returns a Weather::Com::DayPart object with all data belonging to the daytime. For day 0 (today), this will be "undef" when it's after noon... There is a bug in weather.com's date and time mathematics: If you are asking for a location's forecast day 0 and it's short after midnight, day 0 will be "yesterday" and you'll get both, yesterday's daytime forecast and night forecast! I have not investigated this issue further, yet. If anyone has, please inform me! night() Returns a Weather::Com::DayPart object with all data belonging to the night. AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de> COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at the application programming guide of weather.com (<http://www.weather.com/services/xmloap.html>)! perl v5.8.8 2007-07-09 Weather::Com::DayForecast(3pm)