Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Make sure script is running using korn shell

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

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x