Sponsored Content
Operating Systems AIX Tar - pre-checking before making the Tar file Post 302975306 by filosophizer on Friday 10th of June 2016 06:35:12 PM
Old 06-10-2016
how about redirecting the output to a text file, that's also an option

Code:
root@clodb:/clodbvg>/opt/freeware/bin/tar cvf -  /oradata | gzip > /clodbvg/bkp_30MAY16.tgz

re-directing the output to a file test.txt, so how would I do that for the above command ?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

2. Shell Programming and Scripting

extract one file form .tar.gz without uncompressing .tar.gz file

hi all, kindly help me how to extract one file form .tar.gz without uncompressing .tar.gz file. thanks in advance bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

3. UNIX for Advanced & Expert Users

Tar utility (untar a .tar file) on VxWorks

Hi All Can someone pls guide me if there any utility to compress file on windows & uncompress on vxworks I tried as - - compressed some folders on windows ... i created .tar ( to maintain directory structure ) and compressed to .gz format. - on VxWorks i have uncompressed it to .tar... (1 Reply)
Discussion started by: uday_01
1 Replies

4. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

5. UNIX for Dummies Questions & Answers

Making tar of a remote file system

Hello, I was asked by my boss to make a backup of one of our systems that is slated to be decommissioned. When I suggested if could tar the "/" directory he nodded and said that would do the trick, When I try and execute the command I get EOF error. I think it is because there is not enough... (2 Replies)
Discussion started by: mojoman
2 Replies

6. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

7. UNIX for Advanced & Expert Users

Move files while making a tar

I have the following folder structure code/f1/ code/lib/t1 code/lib/t2 code/lib/t3 code/lib/t3 code/lib_1/t1 code/exc I would like to create a tar with a folder structure below and I can use the following tar command f1 lib/t1 lib/t2 lib/t3 tar -cvf code.tar -C code f1 lib... (4 Replies)
Discussion started by: alpboys
4 Replies

8. UNIX for Dummies Questions & Answers

Do I need to extract the entire tar file to confirm the tar folder is fine?

I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it. Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem? tar tvf file1.tar ... (1 Reply)
Discussion started by: vivien_chu
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX command to check if file name ends with .tar OR if the file is a tar file

Hello Team, Would you please help me with a UNIX command that would check if file is a tar file. if we dont have that , can you help me with UNIX command that would check if file ends with .tar Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies

10. AIX

Making Tar of directory and tar file is going to be placed

Quick question, is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?) sample: /opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz will the tar file backup.tgz also include backup.tgz ? i tried... (5 Replies)
Discussion started by: filosophizer
5 Replies
Inline-FAQ(3)						User Contributed Perl Documentation					     Inline-FAQ(3)

NAME
Inline-FAQ - The Inline FAQ DESCRIPTION
Welcome to the official Inline FAQ. In this case, FAQ means: Formerly Answered Questions This is a collection of old, long-winded emails that myself and others have sent to the Inline mailing list. (inline@perl.org) They have been reviewed and edited for general Inline edification. Some of them may be related to a specific language. They are presented here in a traditional FAQ layout. General Inline Since there is only a handful of content so far, all FAQs are currently under this heading. How disposable is a .Inline or _Inline directory? I probably need to be more emphatic about the roll of _Inline/ cache directories. Since they are created automatically, they are completely disposable. I delete them all the time. And it is fine to have a different one for each project. In fact as long as you don't have ~/.Inline/ defined, Inline will create a new ./_Inline directory. You can move that to ./.Inline and it will continue to work if you want to give it more longevity and hide it from view. There is a long complicated list of rules about how [_.]Inline/ directories are used/created. But it was designed to give you the most flexibility/ease-of-use. Never be afraid to nuke 'em. They'll just pop right back next time. :) Whatever happened to the SITE_INSTALL option? SITE_INSTALL is gone. I was going to leave it in and change the semantics, but thought it better to remove it, so people wouldn't try to use it the old way. There is now _INSTALL_ (but you're not supposed to know that :). It works magically through the use of Inline::MakeMaker. I explained this earlier but it's worth going through again because it's the biggest change for 0.40. Here's how to 'permanently' install an Inline extension (Inline based module) with 0.40: 1) Create a module with Inline. 2) Test it using the normal/local _Inline/ cache. 3) Create a Makefile.PL (like the one produced by h2xs) 4) Change 'use ExtUtils::MakeMaker' to 'use Inline::MakeMaker' 5) Change your 'use Inline C => DATA' to 'use Inline C => DATA => NAME => Foo => VERSION => 1.23' 6) Make sure NAME matches your package name ('Foo'), or begins with 'Foo::'. 7) Make sure VERSION matches $Foo::VERSION. This must be a string (not a number) matching /^d.dd$/ 8) Do the perl/make/test/install dance (thanks binkley :) With Inline 0.41 (or thereabouts) you can skip steps 3 & 4, and just say 'perl -MInline=INSTALL ./Foo.pm'. This will work for non-Inline modules too. It will become the defacto standard (since there is no easy standard) way of installing a Perl module. It will allow Makefile.PL parameters 'perl -MInline=INSTALL ./Foo.pm - PREFIX=/home/ingy/perl' and things like that. It will also make use of a MANIFEST if you provide one. How do I create a binary distribution using Inline? I've figured out how to create and install a PPM binary distribution; with or without distributing the C code! And I've decided to share it with all of you :) NOTE: Future versions of Inline will make this process a one line command. But for now just use this simple recipe. --- The Inline 0.40 distribution comes with a sample extension module called Math::Simple. Theoretically you could distribute this module on CPAN. It has all the necessary support for installation. You can find it in Inline-0.40/modules/Math/Simple/. Here are the steps for converting this into a binary distribution *without* C source code. NOTE: The recipient of this binary distribution will need to have the PPM.pm module installed. This module requires a lot of other CPAN modules. ActivePerl (available for Win32, Linux, and Solaris) has all of these bundled. While ActivePerl isn't required, it makes things (a lot) easier. 1) cd Inline-0.40/Math/Simple/ 2) Divide Simple.pm into two files: ---8<--- (Simple.pm) package Math::Simple; use strict; require Exporter; @Math::Simple::ISA = qw(Exporter); @Math::Simple::EXPORT = qw(add subtract); $Math::Simple::VERSION = '1.23'; use Inline (C => 'src/Simple.c' => NAME => 'Math::Simple', VERSION => '1.23', ); 1; ---8<--- ---8<--- (src/Simple.c) int add (int x, int y) { return x + y; } int subtract (int x, int y) { return x - y; } ---8<--- So now you have the Perl in one file and the C in the other. The C code must be in a subdirectory. 3) Note that I also changed the term 'DATA' to the name of the C file. This will work just as if the C were still inline. 4) Run 'perl Makefile.PL' 5) Run 'make test' 6) Get the MD5 key from 'blib/arch/auto/Math/Simple/Simple.inl' 7) Edit 'blib/lib/Math/Simple.pm'. Change 'src/Simple.c' to '02c61710cab5b659efc343a9a830aa73' (the MD5 key) 8) Run 'make ppd' 9) Edit 'Math-Simple.ppd'. Fill in AUTHOR and ABSTRACT if you wish. Then change: <CODEBASE HREF="" /> to <CODEBASE HREF="Math-Simple.tar.gz" /> 10) Run: tar cvf Math-Simple.tar blib gzip --best Math-Simple.tar 11) Run: tar cvf Math-Simple-1.23.tar Math-Simple.ppd Math-Simple.tar.gz gzip --best Math-Simple-1.23.tar 12) Distribute Math-Simple-1.23.tar.gz with the following instructions: A) Run: gzip -d Math-Simple-1.23.tar.gz tar xvzf Math-Simple-1.23.tar B) Run 'ppm install Math-Simple.ppd' C) Delete Math-Simple.tar and Math-Simple.ppd. D) Test with: perl -MMath::Simple -le 'print add(37, 42)' --- That's it. The process should also work with zip instead of tar, but I haven't tried it. The recipient of the binary must have Perl built with a matching architecture. Luckily, ppm will catch this. For a binary dist *with* C source code, simply omit steps 2, 3, 6, and 7. If this seems too hard, then in a future version you should be able to just type: make ppm perl v5.12.5 2010-07-04 Inline-FAQ(3)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy