08-29-2001
Use tar with the non-rewind option
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hi ,
On AIX 4.3.3
I typed the following command
tar -cvf <filename> ( actually I forgot to type the device name)
the output was change in the file size to 10240 bytes
I tried tar -xvf to extract the same but file size is same.
The file was "txt" file and was readable before the... (2 Replies)
Discussion started by: amit
2 Replies
2. UNIX for Advanced & Expert Users
Can someone please verify for me if tar compresses the directory or filesystem it is asked to back up??
reason am asking is I checked the size of the /home directory before running a tar command
now, after I ran the tar command and the tar was done extracting the directory from the archive, I... (2 Replies)
Discussion started by: TRUEST
2 Replies
3. UNIX for Advanced & Expert Users
I am using a tar command to backup my system. It works properly.
I have had some trouble and I need to restore a few files.
I am using the following command :
tar xvf /dev/rmt2h myfile_to_restore
The tar command seemd to work but after a long time I got the following error message :... (6 Replies)
Discussion started by: renard
6 Replies
4. Shell Programming and Scripting
The below tar command works fine for me,
tar -cvf - `find ./srcdir -type d` | (cd ./destdir ; tar -xvf - )
but this version is giving error to me:
cd ./srcdir &&
tar -cf - . |
gzip -9 |
cd ../destdir &&
gzip -d |
tar -xf -
error is: gzip: compressed data not read from a terminal.... (2 Replies)
Discussion started by: royalibrahim
2 Replies
5. UNIX for Dummies Questions & Answers
I've done a tar -cvf data.tar *
in our live data directory on a Solaris machine.
I copy the tar file to the test area and try
tar -xvf data.tar .
and it uses the full path in the tar file and overwrites the live ones again.
I've used tar many a time and don't understand why its happening.... (1 Reply)
Discussion started by: kinhell
1 Replies
6. Shell Programming and Scripting
i have some 685 files in my directory.Below the count:
find . -name "CurrentCollectorMeterReadBackup_2009*" -exec ls -ltr {} \; | wc -l
685
i want to tar them but it is telling me arg list too long. how to tar all this files in one shot
tar -cvf - -L... (1 Reply)
Discussion started by: ali560045
1 Replies
7. UNIX for Dummies Questions & Answers
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
8. Linux
can someone help me here. apparently, the colon i included in the name of this file is making it difficult for tar to untar it. please help
####### tar xvf DailyConfigs_Nov-19-11\:00-2009.tar
rsh: DailyConfigs_Nov-19-11: Name or service not known
tar: DailyConfigs_Nov-19-11\:00-2009.tar:... (4 Replies)
Discussion started by: SkySmart
4 Replies
9. Ubuntu
Hello everyone, I´ve got a problem when I try to untar a file.
The following errors appear:
tar: Skipping to next header
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
Can anyone help me? Thanks in advance! (1 Reply)
Discussion started by: katkat
1 Replies
10. Shell Programming and Scripting
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
LEARN ABOUT PHP
arrayiterator
ARRAYITERATOR(3) 1 ARRAYITERATOR(3)
The ArrayIterator class
INTRODUCTION
This iterator allows to unset and modify values and keys while iterating over Arrays and Objects.
When you want to iterate over the same array multiple times you need to instantiate ArrayObject and let it create ArrayIterator instances
that refer to it either by using foreach or by calling its getIterator() method manually.
CLASS SYNOPSIS
ArrayIterator
ArrayIteratorArrayAccessSeekableIteratorCountableSerializable
Methods
o public void ArrayIterator::append (mixed $value)
o public void ArrayIterator::asort (void )
o public ArrayIterator::__construct ([mixed $array = array()], [int $flags])
o public int ArrayIterator::count (void )
o public mixed ArrayIterator::current (void )
o public array ArrayIterator::getArrayCopy (void )
o public void ArrayIterator::getFlags (void )
o public mixed ArrayIterator::key (void )
o public void ArrayIterator::ksort (void )
o public void ArrayIterator::natcasesort (void )
o public void ArrayIterator::natsort (void )
o public void ArrayIterator::next (void )
o public void ArrayIterator::offsetExists (string $index)
o public mixed ArrayIterator::offsetGet (string $index)
o public void ArrayIterator::offsetSet (string $index, string $newval)
o public void ArrayIterator::offsetUnset (string $index)
o public void ArrayIterator::rewind (void )
o public void ArrayIterator::seek (int $position)
o public string ArrayIterator::serialize (void )
o public void ArrayIterator::setFlags (string $flags)
o public void ArrayIterator::uasort (string $cmp_function)
o public void ArrayIterator::uksort (string $cmp_function)
o public string ArrayIterator::unserialize (string $serialized)
o public bool ArrayIterator::valid (void )
PHP Documentation Group ARRAYITERATOR(3)