HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Spool file from tar backup
Operating System - HP-UX
1834136
Members
2220
Online
110064
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
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
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
12-14-2001 05:36 AM
12-14-2001 05:36 AM
Spool file from tar backup
Hi,
I am handling the data-centre of a MNC bank.
For auditing purpose I need to give the
Backup logs of all tar backups.
While taking backup I need to monitor also.
I tried with nohup and the following
tar cv /test > /test.txt 2>&1
Both gives output to the file,But I need
the process display also.
Can any one help me?
Thanks & Regards
R.Suresh.
I am handling the data-centre of a MNC bank.
For auditing purpose I need to give the
Backup logs of all tar backups.
While taking backup I need to monitor also.
I tried with nohup and the following
tar cv /test > /test.txt 2>&1
Both gives output to the file,But I need
the process display also.
Can any one help me?
Thanks & Regards
R.Suresh.
PDLS
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 05:41 AM
12-14-2001 05:41 AM
Re: Spool file from tar backup
Try this:
tar cv /test 2>&1 | tee /test.txt
HTH
Duncan
I am an HPE Employee
tar cv /test 2>&1 | tee /test.txt
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 05:43 AM
12-14-2001 05:43 AM
Re: Spool file from tar backup
Perform a 'tail -f /tmp/file1' to monitor the logfile, in a separate window.
You could try the 'tar xxxxxxx |tee /tmp/logfile' command but tar does not write to the output that the 'tee' command will capture.
If you need a logfile for tracking purposes, why not perform a 'script /tmp/scriptfile1' command before the tar, which will write all output of tar to the script file specified.
Share and Enjoy! Ian
You could try the 'tar xxxxxxx |tee /tmp/logfile' command but tar does not write to the output that the 'tee' command will capture.
If you need a logfile for tracking purposes, why not perform a 'script /tmp/scriptfile1' command before the tar, which will write all output of tar to the script file specified.
Share and Enjoy! Ian
Building a dumber user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 05:52 AM
12-14-2001 05:52 AM
Re: Spool file from tar backup
use the tee command, just make sure you include stderror in the redirect
tar -cv /test 2>&1 | tee logfile
tar -cv /test 2>&1 | tee logfile
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 2025 Hewlett Packard Enterprise Development LP