Hi All,
I am unable to exit from a shell script using the below code:
#!/bin/ksh
passchk()
(
if [ 0 = "$finalresult" ];then
echo "Password validated"
else
echo "Wrong password Quiting the application..."
exit 0#not working
fi
)
passchk
(Note:"finalresult" passed to the passchk function)
How can I rectify this?