in reply to Re: compressing VERY LARGE files
in thread compressing VERY LARGE files

Thanks, I really had not thought of that. What I might do is write the location of the compression binary to a file once I find it, then check that file first each time to be sure it is still there, if not, just look for it again.

Replies are listed 'Best First'.
Re^3: compressing VERY LARGE files
by RMGir (Prior) on Sep 26, 2002 at 20:20 UTC

    Glad you like it :)

    But I wouldn't save the location to a file.

    Imagine a very bare bones server, where only compress is installed. Your script runs once, saves /bin/compress as the preferred compressor, and never notices the next week when bzip is installed. (It could also have trouble if the executable was moved or deleted...)

    Compared with compressing a 600M file, I wouldn't worry about the overhead of doing (at most!) 21 -x's once each time your script starts up...
    --
    Mike