Difference between revisions of "Scripting"

From eLinux.org
Jump to: navigation, search
m
Line 16: Line 16:
 
* [http://www.gnu.org/software/shtool/ shtool]
 
* [http://www.gnu.org/software/shtool/ shtool]
 
** Official GNU project
 
** Official GNU project
 +
** 3000 SLOC, 19 functions, bloated
 
* [http://intuitive.com/wicked/wicked-cool-shell-script-library.shtml Wicked Cool Shell Scripts, 2004, samples]
 
* [http://intuitive.com/wicked/wicked-cool-shell-script-library.shtml Wicked Cool Shell Scripts, 2004, samples]
 
** Indeed cool shell scripts, worth to read
 
** Indeed cool shell scripts, worth to read
Line 24: Line 25:
 
** 5000 SLOC, 500 functions, bloated
 
** 5000 SLOC, 500 functions, bloated
 
** The philosophy of MBFL is to do the work as much as possible without external commands.
 
** The philosophy of MBFL is to do the work as much as possible without external commands.
** Сomplicated to use
+
** Complicated to use
 
* [http://www.bashinator.org/ Bashinator]
 
* [http://www.bashinator.org/ Bashinator]
 
** Logging framework
 
** Logging framework
 
** 700 SLOC, 18 functions
 
** 700 SLOC, 18 functions
** Сomplicated to use
+
** Complicated to use
 
* [http://code.google.com/p/bsfl/ bsfl - Bash Shell Function Library ]
 
* [http://code.google.com/p/bsfl/ bsfl - Bash Shell Function Library ]
 
** 600 SLOC, 50 functions, logging functions, trivial wrappers
 
** 600 SLOC, 50 functions, logging functions, trivial wrappers

Revision as of 11:05, 4 January 2014

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.

Shell scripting

Shell scripting libraries

Samples from books

Historical

References

See also