I have a Korn shell script which calls a Bourne shell script which runs a Cache database process. From memory, the Cache command looks something like this:
csession TEST -U something goes here ^ZBKCRON
The calling order looks like this:
Korn-shell-script --> Bourne-shell-script --> Cache-command
The problem is that I need for the Korn shell script to wait for the csession command to finish before it terminates. Unfortunately, it does not. I've tried using the wait command, to no avail. Under the circumstances, I don't think the $! variable would be of much use. The shell's ampersand operator (&) is not being used to put the csession command in the background, so if that's what's happening, I have no idea how.