|
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.
|