The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #5 (permalink)  
Old 03-18-2009
kitty123 kitty123 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 5
well im not entering anything on the command line. when i run the script i just want it to print off the PID # in the first loop and then recycle those numbers to the second loop and then kill the process. so $5 is definetley not correct. I would think it would be $$ too for the PID but it kills the 2nd loop completely. i want to see the 2nd loop terminating the process in the loop and then repeat the PID #.