scmuser created the topic: Make sure script is running using korn shell
If you have developed a script using the Korn shell, how will you make sure the script will use that shell even if login shell is different?
renjith replied the topic: Re: Make sure script is running using korn shell
begin shell script with Shabang/interpreter line
#!/bin/ksh
rajeshkumar replied the topic: Re: Make sure script is running using korn shell
There are 2 ways to run a script with specific shell no matter if login shell is different..
Method 1:
Use following before any shell script…
#!/bin/ksh
Method 2:
Execute shell script with ksh
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
Latest posts by scmgalaxy K (see all)
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018