Question: How Do You Automate a Shell Script in Unix?
Contents How Do You Automate a Shell Script? to Customise a Shell Script, We First Need to Create It as Follows: to Hold a Text Program, We Need to Create a...
Contents
How do you automate a shell script?
To customise a shell script, we first need to create it as follows:
- To hold a text program, we need to create a text file.
- Choose a shell to write the script.
- Add the necessary commands to the file.
- Save the file.
- Change its permissions to make the file executable.
- Run the shell program.
26 июн. 2018 г.
Must Read
How do I run a shell script automatically in Unix?
local file using nano or gedit editor and add your scripts in it. File path could be /etc/rc. local or /etc/rc. d/rc.
…
Test Test Test:
- Run your test script without cron to make sure it actually works.
- Make sure you saved your command in cron, use sudo crontab -e.
- Reboot the server to confirm it all works sudo @reboot.
25 мар. 2015 г.