Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gzip problem

Status
Not open for further replies.

farhsyed

IS-IT--Management
Feb 6, 2001
22
0
0
Hi,

I am having a typical problem while using gzip with a
file size of 3586105344 bytes on a Linux Server
(Linux version 2.4.9-e.3smp
(bhcompile@stripples.devel.redhat.com) (gcc version
2.96 20000731 (Red Hat Linux 7.2 2.96-108.1)) #1 SMP
Fri May 3 16:48:54 EDT 2002) with gzip version gzip
1.3.

The problem is that gzip is compressing the said file
ok but its not removing the original file, its keeping
both original & .gz files. This is happening while
using gzip from a user. While doing gzip the
same file with root, its removing the original file
but the size of the compressed file is same in both
cases.

The gzip was ok while the file size was under 3GB, it
started misbehaving after the file size grew to 3GB+.

Any solution to this problem.

Regards

farhsyed
 
Hi,

Verify of that user has rights to rename or delete the original file?
Mybe he has only rights to read it!!
 
Thanks for the reply, I think you did not read the last paragraph of my post. Its the same user as earlier with the file size of < 3 GB.

Thanks
 
Hi,

Sorry, I have seen but I did not read the Last lines.

Here is the result of a try on my box :

Code:
-rwxrwxrwx    1 root     root     3522830336 fév 28 16:05 big-try.dbf
$ gzip big-try.dbf
$ ls -rtl big-try.dbf*
-rwxrwxrwx    1 oracle   dba      21005920 fév 28 16:05 big-try.dbf.gz
$ uname -a
Linux gedsrv_dev_p4 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:17:59 EDT 2005 i686 i68
6 i386 GNU/Linux
$ type gzip
gzip is hashed (/bin/gzip)
$ file /bin/gzip
/bin/gzip: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Lin
ux 2.2.5, dynamically linked (uses shared libs), stripped
$ id
uid=1001(oracle) gid=1000(dba) groupes=1000(dba)
$ ulimit -a
core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 4
max memory size       (kbytes, -m) unlimited
open files                    (-n) 60000
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 10240
cpu time             (seconds, -t) unlimited
max user processes            (-u) 60000
virtual memory        (kbytes, -v) unlimited
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top