in reply to Package install

for this specific call: the variable $$ holds the PID you want to retrieve :p

sorry i cannot help you with your real problem - your code works for me.