Using gzip and my speakers have gone mad!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Using gzip and my speakers have gone mad!
# 1  
Using gzip and my speakers have gone mad!

Hello,

I wanted to compress a directory which I did with:
Code:
tar -czvf backup15062007.tar.gz backup15062007/

I knew that you could specify the compression level with gzip so I then did:
Code:
gzip -cvf9 backup15062007.tar.gz backup15062007compress.tar.gz

Now I know this probably won't work )it's a 1.3GB file and still going in the background) as I'm trying to compress a file that's already compressed (with tar -z), and it's now producing output on the screen that's just complete rubbish, with umlauts and so forth, but the thing is that my speaker has gone mad. I'm using cygwin on windows XP, and the default 'ding' is playing about four times a second almost non-stop whilst the compression is going. But there are no messages on the screen other than the console window output.

Why is this?

Thanks.

H.
# 2  
You are uncompressing to standard output, i.e. your screen.
Code:
$ gzip --help
gzip 1.3.5
(2002-09-30)
usage: gzip [-acdfhlLnNrtvV19] [-S suffix] [file ...]
 -a --ascii       ascii text; convert end-of-lines using local conventions
 -c --stdout      write on standard output, keep original files unchanged
 -d --decompress  decompress
 -f --force       force overwrite of output file and compress links
 -h --help        give this help
 -l --list        list compressed file contents
 -L --license     display software license
 -n --no-name     do not save or restore the original name and time stamp
 -N --name        save or restore the original name and time stamp
 -q --quiet       suppress all warnings
 -r --recursive   operate recursively on directories
 -S .suf  --suffix .suf     use suffix .suf on compressed files
 -t --test        test compressed file integrity
 -v --verbose     verbose mode
 -V --version     display version number
 -1 --fast        compress faster
 -9 --best        compress better
    --rsyncable   Make rsync-friendly archive
 file...          files to (de)compress. If none given, use standard input.

# 3  
I don't follow, surely:

Code:
gzip -cvf9 backup15072007.tar.gz backup15062007compress.tar.gz

is forcibly compressing the initial file (already compressed) with a compression level of 9 and printing the stats in verbose mode to the screen, but compressing to a file (the second filename listed)?

Why then does that have anything to do with the speakers? The command ran for an hour before I stopped it - the 'dings' were driving me mad.

H.
# 4  
Quote:
Originally Posted by patwa
I don't follow, surely:

Code:
gzip -cvf9 backup15072007.tar.gz backup15062007compress.tar.gz

is forcibly compressing the initial file (already compressed) with a compression level of 9 and printing the stats in verbose mode to the screen, but compressing to a file (the second filename listed)?

Why then does that have anything to do with the speakers? The command ran for an hour before I stopped it - the 'dings' were driving me mad.

H.
When you send the binary output of gzip (a lot of unprintable chars and some terminal control commands) to stdout the terminal beeps in protest.

Try: gzip -cvf9 backup15072007.tar.gz > backup15062007compress.tar.gz

Another thing, compressing a gzip file again will not save any disk space and you will be spending twice the amount of time compressing and extracting the archive.
# 5  
Ah, I get it now, missed the > sign.

BTW, I had to remove the previously corrupted archive, but:
Code:
rm -vf backup15062007.tar.gz

does not work. It says "Removed backup15062007.tar.gz" but it still shows up in the directory listing.

Thanks.

H.
# 6  
Fixed with a restart.

Thanks again. Smilie

H.
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #893
Difficulty: Easy
sed uses regular expressions, such as .* (zero or more of any character).
True or False?

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

gzip vs pipe gzip: produce different file size

Hi All, I have a random test file: test.txt, size: 146 $ ll test.txt $ 146 test.txt Take 1: $ cat test.txt | gzip > test.txt.gz $ ll test.txt.gz $ 124 test.txt.gz Take 2: $ gzip test.txt $ ll test.txt.gz $ 133 test.txt.gz As you can see, gzipping a file and piping into gzip... (1 Reply)
Discussion started by: hanfresco
1 Replies

2. Red Hat

Speakers not working....

Hi, i recently installed realtek sound driver software in my system, but after installing it,the speakers are not working.... I'm using fedora 13(x86_64). i just want to make my system speak,like before.... how to make my speakers work ? Anyone please reply.... its really annoying to work... (16 Replies)
Discussion started by: pradeeprajkumar
16 Replies

3. Ubuntu

I can't make my pc speakers beep

I don't know why, but when I issue echo -e '\a' or beep. I get only some sound, set in my OS (Ubuntu Karmic). I tried to run these on Lenovo Y510KA and Lenovo S10-2. Is there another way to make my laptops beep?.. (3 Replies)
Discussion started by: Sapfeer
3 Replies

4. Shell Programming and Scripting

Simple test driving me mad!

Hi all, I have been writing a script to automate some work for myself and have come accross a problem. I cannot understand why it doesn't work, but then I am new to both Unix and Korn shell hacking! Here is the problem: I want to interogate a file for a number and store that number in... (6 Replies)
Discussion started by: alarmcall
6 Replies

5. HP-UX

HP-UX boxes - am I mad?

Greetings, and thanks for having such an interesting forum! I currently have 3 Intel boxes running 2000, and two HP boxes running HP-UX 10.20. I am very inexperienced with the Unix/Linux world. I have several problems, mainly in getting them all networked together. I am constrained to keep a... (3 Replies)
Discussion started by: Menace
3 Replies

Featured Tech Videos