HP3000-L Archives

March 2008, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Robert Mills <[log in to unmask]>
Reply To:
Robert Mills <[log in to unmask]>
Date:
Wed, 5 Mar 2008 15:45:39 -0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (75 lines)
Hi Neil,

Thanks for the info. It looks as if unix.com is one to keep in your
favourites (and subscribe to).


regards,
 
Robert W.Mills
Business Systems Development Analyst
Group Information Systems & Technology
Pinnacle Entertainment
DDI: +44 (0)20 8309 3604 


-----Original Message-----
From: Neil Armstrong [mailto:[log in to unmask]] 
Sent: 05 March 2008 15:22
To: Robert Mills
Subject: RE: [HP3000-L] Date arithmetic on Unix

Dear Robert,

Also should have included more examples that I found from this guy. Lots
of interesting scripts:

http://www.unix.com/showthread.php?t=13785

Neil


> -----Original Message-----
> From: HP-3000 Systems Discussion
> [mailto:[log in to unmask]] On Behalf Of Robert Mills
> Sent: Wednesday, March 05, 2008 10:03 AM
> To: [log in to unmask]
> Subject: [HP3000-L] Date arithmetic on Unix
> 
> 
> Greetings to the -L,
>  
> I know that this is not an MPE question but I gather that there are 
> loads of e3000 sites out there that also have 9000's and other Unix 
> boxes.
>  
> I have been asked to take an existing Korn (ksh) script and remove the

> need to manually edit some dates in it (today - 1 month, today - 1 
> day, today + 1 day, today + 1 month, etc) by getting the shell to 
> calculate them itself.
>  
> All the methods I have currently found required a date command which 
> recognises the -d switch. Unfortunately our doesn't.
>  
> If I am unable to get the shell to do it then I'll have to write a 
> small program in C or C++ which will open a can of worms with the 
> supplier of the system.
>  
> Any suggestions (clean ones please) will be gratefully received.
>  
> regards,
>  
> Robert W.Mills
> Business Systems Development Analyst
> Group Information Systems & Technology Pinnacle Entertainment
> DDI: +44 (0)20 8309 3604
>  
> 
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
> 

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2