- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Newbie - CPIO question
Operating System - HP-UX
1754843
Members
5232
Online
108825
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
Discussions
Discussions
Forums
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
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
тАО04-19-2001 06:40 AM
тАО04-19-2001 06:40 AM
Newbie - CPIO question
Hi i'm currently trying to redirect the blocksize output in a cpio script, so i can use it later on in the script.
I have tried a pipe into "tee" with no success.
Can anyone help please.
the syntax i have tried is
< file list> |cpio -oB > /dev/rmt/0m|tee /tmp/dat.log
I have tried a pipe into "tee" with no success.
Can anyone help please.
the syntax i have tried is
< file list> |cpio -oB > /dev/rmt/0m|tee /tmp/dat.log
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2001 06:45 AM
тАО04-19-2001 06:45 AM
Re: Newbie - CPIO question
hi,
< file list> |cpio -oB > /dev/rmt/0m 2> /tmp/dat.log
would do the trick. Note that this will send ALL errors to your log file.
good luck,
Thierry.
< file list> |cpio -oB > /dev/rmt/0m 2> /tmp/dat.log
would do the trick. Note that this will send ALL errors to your log file.
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2001 07:17 AM
тАО04-19-2001 07:17 AM
Re: Newbie - CPIO question
< file list> |cpio -oB > /dev/rmt/0m 2>&1 > /tmp/dat.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2001 07:44 AM
тАО04-19-2001 07:44 AM
Re: Newbie - CPIO question
If you want to increase throughput on most tape devices you should increase the blocking as well by redirecting through yet another pipe.
After the cpio -oB add this pipe | dd ibs=5k obs=1000k of=/dev/rmt/0m. You will have to play with the output block size to optimize performance. You can still redirect the stderr from both cpio and the dd command to file(s) if you like. On a few tape drives the blocking will not matter but on most it will.
After the cpio -oB add this pipe | dd ibs=5k obs=1000k of=/dev/rmt/0m. You will have to play with the output block size to optimize performance. You can still redirect the stderr from both cpio and the dd command to file(s) if you like. On a few tape drives the blocking will not matter but on most it will.
If it ain't broke, I can fix that.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP