Bash (2)

Creating a Self-installing Executable Shell Script

This How To will cover creating a shell script that contains your installable product inside of it and can be used to install your product on a target machine. This is essentially one file that contains both the files to install and the install logic within it. You'll need a few tools to start off with, namely

uuencode

and

uudecode

These are historical unix tools. From the wikipedia page, at http://en.wikipedia.org/wiki/Uuencode


Filename/TitleSize
makeinstaller.sh5.13 KB
installer.sh324 bytes
test.sh46 bytes

BASH - Man Page

Section: User Commands (1)
Updated: 2006 September 28
Index  

NAME

bash - GNU Bourne-Again SHell  

SYNOPSIS

bash [options] [file]  

COPYRIGHT

Bash is Copyright (C) 1989-2005 by the Free Software Foundation, Inc.  

DESCRIPTION

Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh).

Syndicate content
Search Engine Optimization