GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Timing processes
Operating System - HP-UX
1847700
Members
6977
Online
110265
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
11-20-2001 09:07 AM
11-20-2001 09:07 AM
Hello again.
I want to time how long a "Tar" operation takes. Is there an easy method to do this?
Thanks!
I want to time how long a "Tar" operation takes. Is there an easy method to do this?
Thanks!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 09:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 09:14 AM
11-20-2001 09:14 AM
Re: Timing processes
Hello!
Just prepend "time" to the command you want to time.
So, instead of tar whatever...
you use
time tar whatever
and it will show you some time figures at the end (elapsed time, system time and user time)
Regards,
Paga
Just prepend "time" to the command you want to time.
So, instead of tar whatever...
you use
time tar whatever
and it will show you some time figures at the end (elapsed time, system time and user time)
Regards,
Paga
Keeping alive, until I die.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2001 10:03 AM
11-20-2001 10:03 AM
Re: Timing processes
If you are running say a backup job with tar over night, you could just write your output to a logfile something like this:
logfile=/tmp/tar.log
if [ -f $logfile ];
then
rm $logfile
touch $logfile
else
touch $logfile
fi
echo "Begin TAR backup command at " `date` >>$logfile 2>&1
tar cf >>$logfile 2>&1
echo "TAR backup command complete at " `date` >>$logfile 2>&1
logfile=/tmp/tar.log
if [ -f $logfile ];
then
rm $logfile
touch $logfile
else
touch $logfile
fi
echo "Begin TAR backup command at " `date` >>$logfile 2>&1
tar cf
echo "TAR backup command complete at " `date` >>$logfile 2>&1
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
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