GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script problem
Operating System - HP-UX
1846858
Members
8359
Online
110256
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 09:49 PM
06-22-2004 09:49 PM
hi gurus
i have a problem with a shell script
i want know the difference hours beetwen the
start backup and finish backup .
post the my script in attachment ..
the output of the script is :
Backup Name is : UNIX_CAMBI
START BACKUP 01:00
END BACKUP 09:22
La Durata Del Backup e' di = 502.00
$
the time in minute is good but I dont succeed to convert all in " hours: minute "
help me
how I must make?
help GURUS
i have a problem with a shell script
i want know the difference hours beetwen the
start backup and finish backup .
post the my script in attachment ..
the output of the script is :
Backup Name is : UNIX_CAMBI
START BACKUP 01:00
END BACKUP 09:22
La Durata Del Backup e' di = 502.00
$
the time in minute is good but I dont succeed to convert all in " hours: minute "
help me
how I must make?
help GURUS
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 10:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:17 AM
06-24-2004 10:17 AM
Re: script problem
I think your time is in minutes so Dietmar probably meant:
min=502
echo $((min/60)) hours
echo $((min%60)) minutes
or echo $((min/60)):$((min%60)) for hours:minutes
Also, if you use a temp file you won't have to run the omnidb command so often. I modified your script a little and attached it.
Saluti
min=502
echo $((min/60)) hours
echo $((min%60)) minutes
or echo $((min/60)):$((min%60)) for hours:minutes
Also, if you use a temp file you won't have to run the omnidb command so often. I modified your script a little and attached it.
Saluti
Email: michael.n.daulerio@lmco.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP