Thank You..
but my script is not writing anything to the terminal(I have redirected all output to logfile).
I ran the script in foreground and it completed successfully without sending any output/error to the screen
$ ksh cat_Duplicate_Records_Removal.ksh
$
Is there any other reason why my script is stopped?
Maybe nothing visible was sent to the stdout (usually the screen) but we can see inside to know for sure. Perhaps something prepares to write even though there is no actual output.
earlier when i run the command in background and when enter(CR) is pressed the job got stopped . Now with the inclusion of </dev/null that problem is solved.
when i type disown in HP-UX ksh ..I get the following
Not that I'm aware of. I guess I should have started by asking your OS and $KSH_VERSION .
You should be able to exit by trying exit twice. But I've not dealt with such a system, at least not for a long time.
Nowadays I keep a terminal multiplexer (tmux or GNU screen) running that I can detach and reattach to. My current jobs stay running in virtual terminals which I can just switch to and view the output instead of putting them unattended in the background. Of course, this isn't the right solution for everything but it's worth investigating if you're able to install such software.