Your Question: How Do I Call a Unix Script from Another?
Contents How Do I Run a Shell Script from Another Shell Script? You Can Execute a Shell Script in These Ways: Invoke Another Shell with the Name of Your Shell...
Contents
How do I run a shell script from another shell script?
You can execute a shell script in these ways:
- Invoke another shell with the name of your shell script as an argument: sh myscript.
- Load your script as a “dot file” into the current shell: . myscript.
- Use chmod to make the shell script executable, and then invoke it, like this: chmod 744 myscript ./myscript.
How do I run a Linux script in another directory?
If you make the scrip executable with chmod 755 <nameofscript> to run it you only need to type the path to the script. When you see ./script being used it telling the shell that the script is located on the same directory you are executing it. To use full path you type sh /home/user/scripts/someScript .