Personal tools
You are here: Home technobabble projects bash install script using ssh, rsync, scp, and gunzip

bash install script using ssh, rsync, scp, and gunzip

Mostly as an example for myself since I always forget little subtleties of bash scripting.

Document bash install script by Craig McChesney — last modified Dec 06, 2008 12:53 PM
This is not a full script, and wouldn't be useful anyway because it's hard-wired for a particular installation. I snipped out some code in the interest of brevity, so there may be some undefined variables, etc. Demonstrates: including one script's code from another, checking command line args, extracting comand line args, interactive user input to pause/confirm, file and directory tests, using sed to replace meta characters in a file, invoking rsync, invoking ssh, invoking scp, invoking gunzip/untar, checking sub-process exit codes.
Document Actions