[Veritas-bu] list media by last written date
2003-01-25 15:05:16
Subject: |
[Veritas-bu] list media by last written date |
From: |
trosamond AT uslec DOT com (Rosamond, Travis) |
Date: |
Sat, 25 Jan 2003 15:05:16 -0500 |
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C2C4AD.140E78C7
Content-Type: text/plain;
charset="iso-8859-1"
Here is a perl script I asked our perl guy to write to do what you/we are
requesting... We use it for our weekly rotations.
Hope this is helpful...
-----Original Message-----
It has two modes of operation, command line and interactive.
Command line format is:
./nb.pl <Start Date> <Start Time> <End Date> <End Time>
executed as:
./nb.pl 01/20/03 06:00 01/22/03 23:59
Notice that the time you enter does not have the seconds, it is only HH:MM,
the seconds are appended as :00 to the input.
To use it in automatic mode just type ./nb.pl and you are prompted through
all the required information. A couple notes though, the time is checked
to make sure that the hours are valid and the minutes are valid and the date
is checked to make sure a valid month is entered and a valid number of days
for that month. For example, you cannot say 02/30/03 it will give an
informational error and prompt for the same info until the user gets it
right or <CTR>C is pressed.
What it does not check is the dates against each other. It does not make
sure that the '-d' date or tim is earlier than the '-e' date or time. Also,
the year is only checked to make sure it is two digits. The value of the
year you enter is not checked at all. Also the year is hardcoded with a
'20' prefix. If you need this changed let me know.
------_=_NextPart_001_01C2C4AD.140E78C7
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Tahoma size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><SPAN class=098473114-25012003><FONT color=#0000ff>Here is a perl script
I asked our perl guy to write to do what you/we are requesting... We
use
it for our weekly rotations.</FONT></SPAN></DIV>
<DIV><SPAN class=098473114-25012003><FONT
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=098473114-25012003><FONT color=#0000ff>Hope this is
helpful...</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><BR></FONT></DIV>
<P><FONT size=2><BR> It has two modes of operation, command line and
interactive.<BR><BR>Command line format is:<BR><FONT color=#0000ff>./nb.pl
<Start Date> <Start Time> <End Date> <End
Time></FONT><BR><BR>executed as:<BR><FONT color=#0000ff>./nb.pl
01/20/03 06:00 01/22/03 23:59</FONT></FONT></P>
<P><FONT size=2>Notice that the time you enter does not have the seconds, it
is only HH:MM, the seconds are appended as :00 to the input.</FONT></P>
<P><FONT size=2>To use it in automatic mode just type ./nb.pl and you are
prompted through all the required information. A couple notes
though, the time is checked to make sure that the hours are valid and the
minutes are valid and the date is checked to make sure a valid month is
entered and a valid number of days for that month. For example, you
cannot say 02/30/03 it will give an informational error and prompt for
the same info until the user gets it right or <CTR>C is
pressed.</FONT></P>
<P><FONT size=2>What it does not check is the dates against each other.
It does not make sure that the '-d' date or tim is earlier than the '-e'
date or time. Also, the year is only checked to make sure it is two
digits. The value of the year you enter is not checked at all.
Also the year is hardcoded with a '20' prefix. If you need this changed
let me know.</FONT></P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C2C4AD.140E78C7--
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] list media by last written date, Steven L. Sesar
- [Veritas-bu] list media by last written date, Donaldson, Mark
- [Veritas-bu] list media by last written date, Donaldson, Mark
- [Veritas-bu] list media by last written date, Rosamond, Travis
- [Veritas-bu] list media by last written date,
Rosamond, Travis <=
- [Veritas-bu] list media by last written date, Rosamond, Travis
|
|
|