Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shell script not executing

Tags:

shell

ksh

I am trying to run a shell script on unix, but I am getting an error specifying it can't be executed.

Command

Unix> Abc.ksh
ksh: Abc.ksh: cannot execute

Also tried

pcasvs17 >  ./Abc.ksh
ksh: ./Abc.ksh: cannot execute

The script starts with

 #!/bin/ksh

Any help is appreciated.

like image 326
misguided Avatar asked Apr 11 '26 00:04

misguided


1 Answers

chmod +x Abc.ksh and try again with ./Abc.ksh

like image 92
ennuikiller Avatar answered Apr 17 '26 10:04

ennuikiller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!