value of $$


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users value of $$
# 1  
Old 06-15-2004
value of $$

Hi,
I have a shell (k-shell) program running which has the following:
spool /tmp/load.log.$$

--can any one tell me what's the value of this $$
Thanks
# 2  
Old 06-15-2004
As far as I can tell, the value of $$ is your current process id.
# 3  
Old 06-15-2004
Yeah $$ is the pid of the shell. The reason why people use stuff like /tmp/load.log.$$ is to ensure that if two copies of the script run at the same time, they each get a separate log file.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question