GZEXE(1) BSD General Commands Manual GZEXE(1)NAME
gzexe -- create auto-decompressing executables
SYNOPSIS
gzexe [-d] file ...
DESCRIPTION
The gzexe utility uses gzip(1) to compress executables, producing executables that decompress on-the-fly when executed. This saves disk
space, at the cost of slower execution times. The original executables are saved by copying each of them to a file with the same name with a
'~' suffix appended. After verifying that the compressed executables work as expected, the backup files can be removed.
The options are as follows:
-d Decompress executables previously compressed by gzexe.
The gzexe program refuses to compress non-regular or non-executable files, files with a setuid or setgid bit set, files that are already com-
pressed using gzexe or programs it needs to perform on-the-fly decompression: sh(1), mktemp(1), rm(1), echo(1), tail(1), gzip(1), and
chmod(1).
SEE ALSO gzip(1)CAVEATS
The gzexe utility replaces files by overwriting them with the generated compressed executable. To be able to do this, it is required that
the original files are writable.
BSD July 30, 2003 BSD
Check Out this Related Man Page
GZEXE(1) General Commands Manual GZEXE(1)NAME
gzexe - compress executable files in place
SYNOPSIS
gzexe name ...
DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files:
-rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb
-rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~
/usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are
sure that /usr/bin/gdb works properly.
This utility is most useful on systems with very small disks.
OPTIONS -d Decompress the given executables instead of compressing them.
SEE ALSO gzip(1), znew(1), zmore(1), zcmp(1), zforce(1)CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail).
BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.
GZEXE(1)
I have a stubborn process on my OpenBSD box that just refuses to die. It is taking up about half a meg of memory and refuses to die. It appears to be an errant gzip process that was executed from the console on 06 Jan 2002.
Here is a snippet of my attempts to kill the gzip process
... (7 Replies)
I am just curious. Compress by itself will not compress a file of zero bytes. (I know gzip does)
Without using compress -f, at what point will compress work. In other words, what is the smallest the file can be before it will create the .Z file?
Some of us here are just wondering...
Thx (4 Replies)
hi,
I am getting error when trying to create binaaries for Xerces C++
error is
configure:error:installation:cofihuration error:compiler cant create executables
???????????
Thanks in advance im using AIX flavour of IBM
Im using ./configure command to create binaries.Its saying c... (6 Replies)
Is there a way I can check if a file is comppressed or not? (Be it tar/gzip or compress). trying to write a generic housekeeping scrit that will delete files over 6 months old and compress any uncompressed files if less than 6 months old. But not sure if there is a clever way to check except for... (4 Replies)
Hi everyone, I am sort of new to shell scripting,
I have a bunch of files that begin with 'blah' and I want to rename those files with something different (renamedFile1, renamedFile2, renamedFileN). I don't want to go through each file and rename them with the mv command. Could I just use a for... (4 Replies)
I'm trying to delete files that were created/modified in the year 2005 that we compressed and have the .Z extension on them. I tried using the awk utility but the syntax is incorrect. I don't know how to use a wildcard to capture all the compressed files. Here's the code I used
( ls -lR |... (5 Replies)
Hi - I have two complex (for me at least) make files. The older one creates a succesful executable. The later one uses if statements to conditionally make different versions of the executable. The 2nd produces an executable that fails. I have "eyeballed" the differences in the Make files and run... (18 Replies)
We have 22 servers where 3 of them have gzip 1.2.4 installed on our AIX 4.2 .
If I want to copy that gzip unto all the other servers, is it simply a matter of compying the /usr/local/bin/gzip or do I also have to copy other files (librairies, ...) ?
I sent an email to the gzip support group... (10 Replies)
Hello,
One of the senior network admins at work told me that I should not hard code temp files into my scripts. Rather I should use the mktemp commands in the script to create them on the fly.
His argument was that if a malicious user knew the name of my temp files in the script they could... (6 Replies)
Can anyone please help me how to find the list of uncompressed files in a directory and compress it.
My requirement is to omit the previously compressed files.
The directory may consist any type of file.
say for eg, it may files with .txt extensions or .xls etc.
Suggestions will be... (8 Replies)
Hello,
I want to gzip some files before copying to remote host. There is no freespace on source host so it needs to be perfomed within one-liner. I tried the following but it didn't work
gzip -c -9 all_rvds.xml |ssh targethost "dd of=/tmp/all_rvds.xml.gz"
cat all_rvds.xml |gzip -c9 |ssh... (5 Replies)
Hello
I am trying to select multiple files older than 14 days and create a single compressed file out of it. (AIX Release 3 Version 5)
I am trying to achieve it by following
tar -cvf db01_log.tar `find . -name "db01*.log" -mtime +14" -print`| gzip > db01_log.tar
however it just... (7 Replies)
Hi everyone,
I am working with an executable (let's say work) in bash shell. When I run this work
executable it asks the following information;
1- choose task a or b
2- input file
3- output file
4- some operational choices
after it reads the given input file, does some algebraic... (17 Replies)
Hi All,
I am trying to create an executable using shc. I have a script which is creating 10 executables. The executables being created have the below issue.
The message "Please contact your provider" is displayed even though I am not using the “-e” option.
This message is coming for some... (5 Replies)
I have several files on AIX .gzip I need to leave them all in 1 single file as I can do
example
expla_1.gz
expla_2.gz
expla_3.gz
expected result
Final_4.gz #should contain 1, 2, 3 (15 Replies)