Hi,
I've come accross a situation where I need to exit from current shell script at the same time I need to start/activate another shell script.
How can I do that in KSH ?? Need help !!
For example, my script is as below
#!/bin/ksh
paramFile="/home/someXfile.lst"
[[ $(grep `TZ=CST-24 date +%Y%m%d` $paramFile) -ne 0 ]] && <<Here I want to exit from this script and execute another script /home/someYscript.sh>>
I tried below but didn't work well
#!/bin/ksh
paramFile="/home/someXfile.lst"
pid=$$
[[ $(grep `TZ=CST-24 date +%Y%m%d` $paramFile) -ne 0 ]] && kill -9 $pid | /home/someYscript.sh