We have gone through the post where we have learn about the Best Practices to write Linux Shell Script ( If not, Click Here ). Today, we will see when not to use a shell script -
¨ When not to use shell scripts
· resource−intensive tasks, especially where speed is a factor (sorting, hashing, etc.)
· procedures involving heavy−duty math operations, especially floating point arithmetic, arbitrary
· precision calculations, or complex numbers ( C++ or FORTRANshould be used instead)
· cross−platform portability required ( C should be used instead)
· complex applications, where structured programming is a necessity (need typechecking of variables,
· function prototypes, etc.)
· mission−critical applications upon which you are betting the ranch, or the future of the company
· situations where security is important, where you need to protect against hacking
· project consists of subcomponents with interlocking dependencies
· extensive file operations required (Bash is limited to serial file access, and that only in a particularly
· clumsy and inefficient line−by−line fashion).
· need multi−dimensional arrays
· need data structures, such as linked lists or trees
· need to generate or manipulate graphics or GUIs
· need direct access to system hardware
· need port or socket I/O
· need to use libraries or interface with legacy code
· proprietary, closed−source applications (shell scripts are necessarily Open
Source)
https://www.facebook.com/datastage4you
https://twitter.com/datagenx
https://plus.google.com/+AtulSingh0/posts
https://groups.google.com/forum/#!forum/datagenx
No comments:
Post a Comment