- Dec
- 236
- 2
I was noticing some strange things happening with my _logfile. I have TCMD setup to log as follows:
I setup two TCC processes, in first I ran:
Yes, this TCC process is constantly feeding the logfile.
The second TCC, I ran:
and I would run this over and over manually and some of the results were:
where did the "4 " come from? I think it is the SYSTEM process which is PID 4, but "4 19700" would mean that two processes having a lock on the same file? @Filelock is also sending back two process ids, the documentation does not indicate it should be doing this.
Occasionally I would also get:
I got the above error when the first TCC process lost connection to the file attached to _logfile. After killing the "DO" loop on the first TCC process, If I typed :
you would get:
instead of the file name attached to _logfile. I don't know why the connection was broken.
I setup two TCC processes, in first I ran:
do forever (echo ------ >>%_logfile)
The first process had a PID of 19700
Yes, this TCC process is constantly feeding the logfile.
The second TCC, I ran:
echo "%@Filelock[%_logfile]"
and I would run this over and over manually and some of the results were:
"4 19700" strange, system process (PID: 4) and the first TCC (PID: 19700)
"19700" this one is okay
"4" system process
"" No process has a lock on it.
"19700" this one is okay
"4" system process
"" No process has a lock on it.
where did the "4 " come from? I think it is the SYSTEM process which is PID 4, but "4 19700" would mean that two processes having a lock on the same file? @Filelock is also sending back two process ids, the documentation does not indicate it should be doing this.
Occasionally I would also get:
TCC: (Sys) The parameter is incorrect.
"C:\JPSoft\Logs\Commands.txt"
"C:\JPSoft\Logs\Commands.txt"
I got the above error when the first TCC process lost connection to the file attached to _logfile. After killing the "DO" loop on the first TCC process, If I typed :
echo %_logfile
you would get:
ECHO is off
instead of the file name attached to _logfile. I don't know why the connection was broken.