Contents
How do you call a ksh script?
1 Answer
- make sure that ksh is correctly installed in /bin/ksh.
- for executing a script run from the command-line ./script in the directory where script exist.
- If you want to execut the script from any directory without ./ prefix, you have to add the path to your script to the PATH environment variable, add this line.
How do I run a ksh script in bash?
How do I run . sh file shell script in Linux?
- Open the Terminal application on Linux or Unix.
- Create a new script file with .sh extension using a text editor.
- Write the script file using nano script-name-here.sh.
- Set execute permission on your script using chmod command : chmod +x script-name-here.sh.
- To run your script :
How to call shell script (.sh ) from another shell?
You can also specify the shell when calling the other script just as you would from the command line. #!/bin/bash. # call the other script using absolute path. /bin/sh /path/to/the/otherscript.sh.
How to run a KSh script from another script?
In short a.ksh is for running a datastage job. ./a.ksh dev (environment) jobname. So now in a.ksh only i’m trying to call b.ksh .this is to ftp the file.for running this script the command should be ./b.ksh dev (environment). I’m not sure what you are exactly looking for, maybe any one else could help you on this issue. the code is too lengthy.
Which is the second shell script in Java?
The second shell script contains following functions second.sh The first.sh will call the second shell script with some parameters and will call func1 and func2 with some other parameters specific to that function. How can I achieve it?
How to make a script executable in Bash?
Make the other script executable, add the #!/bin/bash line at the top, and the path where the file is to the $PATH environment variable. Then you can call it as a normal command; Or call it with the source command (alias is .) like this: source /path/to/script; Or use the bash command to execute it: /bin/bash /path/to/script;