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
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND