The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-07-2007
smithK smithK is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 3
Shell script not exiting Gracefully

Hi
we are seeing strange behaviour , when we execute shell script it is successfully executing but it's PID is still hanging when we see ps -ef | grep script1.ksh until we do Kill <PID>


$script1.ksh
$
$ ps -ef | grep script1.ksh
user1 249996 1 0 10:48:40 pts/1 0:00 /usr/bin/ksh script1.ksh

Inside script we are using
exit command before completion of script



OS : AIX 5.3.0.0

Can someone advise

Let me know if you need any additional information .


thanks
SmithK