Difference between revisions of "Scripting"
(→Historical) |
(→Historical) |
||
Line 49: | Line 49: | ||
* [http://www.cs.uleth.ca/~holzmann/C/shells/shell_book_blinn/ Portable Shell Programming, 1995, samples] | * [http://www.cs.uleth.ca/~holzmann/C/shells/shell_book_blinn/ Portable Shell Programming, 1995, samples] | ||
** 1000 SLOC, 33 files-functions | ** 1000 SLOC, 33 files-functions | ||
− | * [http://intuitive.com/wicked/wicked-cool-shell-script-library.shtml Wicked Cool Shell Scripts] | + | * [http://intuitive.com/wicked/wicked-cool-shell-script-library.shtml Wicked Cool Shell Scripts, 2004, samples] |
** 4000 SLOC, 100 files-functions | ** 4000 SLOC, 100 files-functions | ||
** Easy to use | ** Easy to use |
Revision as of 17:02, 25 December 2013
Scripting is powerful technology especially valuable in embbedded Linux. It is used for building complex projects, building root file systems and distributions, system management, tests automation.
Most commons shells are bash on PC and busybox's ash on embedded Linux.
Contents
Shell scripting
- Bash Reference Manual
- Bash Guide for Beginners
- Advanced Bash-Scripting Guide
- Command-Line Tools Summary
- http://wiki.bash-hackers.org/
- http://bash.cyberciti.biz/
- Top 10 Best Cheat Sheets and Tutorials for Linux / UNIX Commands
- http://wiki.bash-hackers.org/
- https://wiki.archlinux.org/index.php/bash
Shell scripting libraries
- mbfl - Marco's Bash Functions Library
- 5000 SLOC, 500 functions, bloated
- The philosophy of MBFL is to do the work as much as possible without external commands.
- Сomplicated to use
- Bashinator
- Logging framework
- 700 SLOC, 18 functions
- Сomplicated to use
- bsfl - Bash Shell Function Library
- 600 SLOC, 50 functions, logging functions, trivial wrappers
- Easy to use
- shesfw - Shell Script Framework tool
- 200 SLOC, 20 functions
- unified interface to kdialog, Xdialog, zenity
- shUnit2 - xUnit based unit testing for Unix shell scripts
- log4sh - logging framework
- logging framework for shell scripts that works similar to http://logging.apache.org/
- libbash - tool for managing bash scripts
- loads and unloads functions from scripts with commands source and unset
- bashworks
- rerun - a modular shell automation framework to organize your keeper scripts
- 700 SLOC, 30 functions
- @ aka monkey-tail
- 300 SLOC, 20 functions, simple wrapper functions
- Easy to use
Samples from books
- Learning the bash shell, 2005, samples, 62 files
- Bash Cookbook, 2007, 99 files
- Classic Shell Scripting, 2005. 82 files
Historical
- UNIX Power Tools, 1997, samples
- Portable Shell Programming, 1995, samples
- 1000 SLOC, 33 files-functions
- Wicked Cool Shell Scripts, 2004, samples
- 4000 SLOC, 100 files-functions
- Easy to use
References
See also