I want to use the pidof by a process given by name in tcl. I have used [exec pidof $proc_name ]
, but it always returns an error: child process exited abnormally.
I read somewhere exec
always treat non-zero return as error as pidof return the process id number. Does anyone know if there is a workaround? Thanks in advance!
I want to use pidof is that i want to see if that process is running if not i will restart the process.