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 -->
  #3 (permalink)  
Old 08-30-2007
dhams dhams is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 12
Porter,

Thanks for your response.

I think i am not clear in my question.

Actually i am calling another shell script say xyz.sh in the master program abc.sh in a loop for n number of times in the background mode.

The $$ value gives the PID of the master script in the sub program and hence i am not able to use the pid of the script for naming temp files which gets clashed with the temp files of the other parallely running same sub programs running in background.


Actually in ZSH if i use $! i get 0 as result.