![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux Going Big Time and Prime Time Against Windows, UNIX (WSJ) (Addict 3D) | iBot | UNIX and Linux RSS News | 0 | 06-21-2007 01:10 PM |
| Start time/end time and status of crontab job | thambi | Shell Programming and Scripting | 3 | 05-16-2007 07:24 AM |
| How To Provide Time Sync Using Nts-150 Time Server On Unix Network? | pesty | UNIX for Advanced & Expert Users | 2 | 03-21-2007 10:20 PM |
| Differences between time command and usr/bin/time | icedrake | UNIX for Dummies Questions & Answers | 1 | 04-24-2005 12:34 PM |
| default time in Solaris 8 for time-wait | eloquent99 | UNIX for Dummies Questions & Answers | 1 | 04-01-2003 06:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
HP-UX & need help with time
I use HP-UX & need help with time.
I use a script to create a date stamp: /bin/date "+%m%d%H%M" to get: 12080826. I need a way to use the "touch -t" command to create a file with a timstamp 30 minutes prior to that stamp. (12080756) Can anyone help? |
| Forum Sponsor | ||
|
|
|
|||
|
You need to have your date in epoch seconds, subtract 1800, then format it back so touch -t can use it.
Perderabo's datecalc script in the forum FAQ does this kind of thing for you - look at the date arithmetic thread. Yesterdays Date/Date Arithmetic |