Difference between revisions of "Scripting"

From eLinux.org
Jump to: navigation, search
(Shell scripting libraries)
(Shell scripting libraries)
Line 15: Line 15:
 
===Shell scripting libraries===
 
===Shell scripting libraries===
 
* [http://www.gnu.org/software/shtool/ shtool] The GNU Portable Shell Tool
 
* [http://www.gnu.org/software/shtool/ shtool] The GNU Portable Shell Tool
** Weird
+
** Portable wrappers to standard operations
 
** 3000 SLOC, 19 functions, bloated
 
** 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
 +
** Most in interesting functions: 015-newrm.sh, 016-unrm.sh, 021-findman.sh, 029-loancalc.sh, 037-zcat.sh, 038-bestcompress.sh, 040-diskhogs.sh, 084-webaccess.sh, 100-hangman.sh
 
** 4000 SLOC, 100 files-functions
 
** 4000 SLOC, 100 files-functions
 
** Easy to use
 
** Easy to use

Revision as of 13:27, 10 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

  • shtool The GNU Portable Shell Tool
    • Portable wrappers to standard operations
    • 3000 SLOC, 19 functions, bloated
  • Wicked Cool Shell Scripts, 2004, samples
    • Indeed cool shell scripts, worth to read
    • Most in interesting functions: 015-newrm.sh, 016-unrm.sh, 021-findman.sh, 029-loancalc.sh, 037-zcat.sh, 038-bestcompress.sh, 040-diskhogs.sh, 084-webaccess.sh, 100-hangman.sh
    • 4000 SLOC, 100 files-functions
    • Easy to use

Samples from books

Historical

References

See also