Wednesday, October 3, 2007

Capabilities

Main article: scripting languageShell script Other scripting languages
Often, writing a shell script is much quicker than writing the equivalent code in other programming or scripting languages. As with other interpreted languages, shell scripts have no compilation step, so the script can be executed quickly while debugging.

Shell script Advantages
One significant disadvantage of using shell scripts is that they can run slowly due to the need to create potentially many new sub-processes for each of the many commands executed. When a script's job can be accomplished by setting up a pipeline in which efficient filter commands perform most of the work, the slowdown is minimal. But if a shell script has to perform multiple individual actions on many individual data items, resulting in multiple forks for each command invoked to perform each action, the script might be orders of magnitude slower than a conventional compiled program (in which those same actions might require but single processor instructions).

Quotes

Windows PowerShell
Windows Script Host
Shebang (Unix)

No comments: