/var/run/[XXX].pid - Tcl pid code
I wish to implement capturing my pid to be stored in /var/run.
Has anyone done this in Tcl?
Can I please have some sample code?
By using this file, /var/run/[xxx].pid, is this the best way to determine if an istance of your application is already running? Once again, any sample code?
Please advise.
|