Why you should do shell scripting :
Whether you have you perform the same task, again and again, every day and it is boring, right? “For example, if there is a slight chance that you will have to perform the same set of commands again, to make it easier you should try to create a shell script then and there you have to do it again.
When I need to do that task again, I could execute that script. If maintenance needs to be performed on a system at 3:00 in the morning, we can write a script that does the required work and schedule a job to run it.”
SHELL SCRIPTING, in brief:-
- A script is a command-line program that contains a series of commands.
- The commands contained in the script are executed by an interpreter.
- In the case of shell scripts, the shell acts as the interpreter and executes the commands listed in the script one after the other.
- Anything you can execute at the command line, you can put into a shell script.
- Shell scripts are great at automating tasks.
- If you find yourself running a series of commands to accomplish a given task and will need to perform that task again in the future, you can—and probably should—create a shell script for that task.
No comments:
Post a Comment