- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to extract multiple tar files at time in hp-ux...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО05-14-2008 11:24 PM
тАО05-14-2008 11:24 PM
how to extract multiple tar files at time in hp-ux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 11:29 PM
тАО05-14-2008 11:29 PM
Re: how to extract multiple tar files at time in hp-ux?
Dear Sokolova
tar -xvf then u file name
thanks
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 11:36 PM
тАО05-14-2008 11:36 PM
Re: how to extract multiple tar files at time in hp-ux?
plz help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 11:38 PM
тАО05-14-2008 11:38 PM
Re: how to extract multiple tar files at time in hp-ux?
tar1.tar
tar2.tar
tar xvf tar1.tar &
tar xvf tar2.tar &
That runs both processes in the background.
If they conflict, they blow up. You can add a cd or something to extract them in separate directories.
background processes run more slowly and at a lower priority than foreground. untarring files can be input/output intensive and that will make things run even more slowly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2008 11:58 PM
тАО05-14-2008 11:58 PM
Re: how to extract multiple tar files at time in hp-ux?
did you try with
#tar xvf * ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 12:09 AM
тАО05-15-2008 12:09 AM
Re: how to extract multiple tar files at time in hp-ux?
Why would that work? You would need a "-f" before each tarfile. And nothing in tar(1) talks about multiple archives.
>SEP: This runs both processes in the background.
tar xvf tar1.tar &
tar xvf tar2.tar &
If you are going to do this, you probably don't want to use "v". Or you want to redirect stdout & stderr for each tar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 03:37 AM
тАО05-15-2008 03:37 AM
Re: how to extract multiple tar files at time in hp-ux?
normally use one "tar" command for each "tar"
file.
I don't see a good reason to do multiple
"tar" operations at one time ("&") instead
of doing one after another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2008 04:12 AM
тАО05-15-2008 04:12 AM
Re: how to extract multiple tar files at time in hp-ux?
is this acceptable?
SRV2:tmp>touch a b c d
SRV2:tmp>tar -cvf TAR1.tar a b c d
a a 0 blocks
a b 0 blocks
a c 0 blocks
a d 0 blocks
SRV2:tmp>cp -p TAR1.tar TAR2.tar
SRV2:tmp>for mfile in $(ls -1 ./*.tar); do
> echo "untarring $mfile"
> tar -xvf $mfile
> done
untarring ./TAR1.tar
x a, 0 bytes, 0 tape blocks
x b, 0 bytes, 0 tape blocks
x c, 0 bytes, 0 tape blocks
x d, 0 bytes, 0 tape blocks
untarring ./TAR2.tar
x a, 0 bytes, 0 tape blocks
x b, 0 bytes, 0 tape blocks
x c, 0 bytes, 0 tape blocks
x d, 0 bytes, 0 tape blocks
SRV2:tmp>
kind regards
yogeeraj