FREE Shell script Directory
Linux / Unix Shell Script Directory
Not logged in [ Log In ] [ Register ] [ Add Listing ]
Index :: File I/O Manipulation scripts ::

Extracting file

  Consider that you need to perform a routine in a remote server, where you need to decompress a tar.tz and execute a list of commands on this data. One alternative is send the tar.gz file to the remote server throught a ftp or scp and then log in the remote server and run a shell script or run manually a list of commands. Recall Java JRE setup, they use script.bin that comes with an embeeded tar.gz, which is self-extracted in the beginning of script execution. To build the self-extraction script I follow a tutorial published by Stuart Wells, which consists in four steps:

1) Create/identify a tar.gz file that you wish to become self extracting.

2) Create the self extracting script. A sample script is shown below:
 
( This Software is Available for Direct Download )
 
Supported Operating System(s) CentOS, Debian, Linux Generic, Mac OS X,
File Size 1 kb
Version x
License Type Open Source
Requirements Bash / Ksh shell interfaces
Author Website http://www.gnutoolbox.com
 

 
Added 2011/10/10
Views [ 2074 ] Visits [ 5 ]
 
  Listed by : admin

View other listings by admin