Usually we use !/usr/bin/ksh at the start of the script.But if I am having this stuff in the scripts and calling one script from other its not working.What may be the reason behind it ?
xyz.ksh
#!/usr/bin/ksh
echo "Hi"
abc.ksh
#!/usr/bin/ksh
echo "I am fine"
ksh xyz.ksh
Its giving error " !/usr/bin/ksh: not found"
---------- Post updated at 07:15 PM ---------- Previous update was at 07:14 PM ----------
cat xyz.ksh
#!/usr/bin/ksh
echo "Hi"
cat abc.ksh
#!/usr/bin/ksh
echo "I am fine"
ksh xyz.ksh