V20 In-process pipes problem

rps

Jul 6, 2008
436
6
I am attempting to determine how many TCC instances are running. When I use in-process pipes with V20 the resulting count is incorrect. Using V19 all is OK.
The following is with a single V19 stand alone TCC; _tcccont using in-process count. Count is correct.
Code:
C:\JPSoft\TCMD19x64>ver
TCC  19.10.51 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\TCMD19x64>set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\TCMD19x64>set _tcccount
1
The following is with V19 & V20 stand alone TCC's. Count is incorrect in V20 only.
Code:
C:\JPSoft\TCMD20x64>ver
TCC  20.11.40 x64   Windows 10 [Version 6.3.14393]C:\JPSoft\TCMD20x64>set _tcccount
%@execstr[ (tasklist tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\TCMD20x64>ech %_tcccount
5
C:\JPSoft\TCMD20x64>tasklist tcc
 7024  tcc               V19.10 [7024]
11216* tcc               V20.11 [11216] - tasklist tcc
Not what I expected since there are only 2 TCC instances, one V19 & one v20.
Now without the in-process pipe. Note that I added the @dec to eliminate the temp TCC created by the pipe. Count is correct in both TCC versions.
Code:
C:\JPSoft\TCMD20x64>set _tcccount=%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]]
C:\JPSoft\TCMD20x64>ech %_tcccount
2
C:\JPSoft\TCMD20x64>tasklist tcc
 7024  tcc               V19.10 [7024]
11216* tcc               V20.11 [11216] - tasklist tcc
Now with 1 new V19 TCC tab in TCMD V19 and back to an in-process pipe. Count is correct.
Code:
C:\JPSoft\tcmd19x64>ver
TCC  19.10.51 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\tcmd19x64>set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\tcmd19x64>ech %_tcccount
3
Now with 1 stand alone V19 TCC & 2 V20 TCC tabs in TCMD V20 and back using in-process pipe. Count is incorrect in V20 and correct in V19.

Code:
C:\JPSoft\tcmd20x64>ver
TCC  20.11.40 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\tcmd20x64>set _tcccount
%@execstr[ (tasklist tcc |! echo %@INC[%@lines[con:]])]
C:\JPSoft\tcmd20x64>ech %_tcccount
7
C:\JPSoft\TCMD19x64>ver
TCC  19.10.51 x64   Windows 10 [Version 6.3.14393]
C:\JPSoft\TCMD19x64>ech %_tcccount
3
C:\JPSoft\tcmd20x64>tasklist tcc
 7024  tcc               V19.10 [7024]
11216  tcc               V20.11 [11216]
 1884* tcc               V20.11 [1884] - tasklist tcc
Again not what is expected for V20. If I change the definition of _tcccount to tcccount%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]] the resulting count is correct.

I have performed other tests with different combinations of stand alone TCC and TCC tabs and the bottom line is when using in-process pipes the TCC instance count is correct when using V19 and not when using V20.
So what's up with in-process pipes in V20?
 
May 20, 2008
11,411
99
Syracuse, NY, USA
They work here:
Code:
t:\> ver

TCC  20.11.40   Windows 7 [Version 6.1.7601]

t:\> tasklist tcc
 3724* tcc               20.11.40  [3724]  t:\
 3648  tcc               16.03.55  [3648]  v:\
 3984  tcc               15.01.58  [3984]  v:\

t:\> echo %@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
3
 

rps

Jul 6, 2008
436
6
They work here:
Code:
t:\> ver

TCC  20.11.40   Windows 7 [Version 6.1.7601]

t:\> tasklist tcc
 3724* tcc               20.11.40  [3724]  t:\
 3648  tcc               16.03.55  [3648]  v:\
 3984  tcc               15.01.58  [3984]  v:\

t:\> echo %@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]
3
Thanks; Good to know In-process pipes are working with Windows 7, TCC 20.11.40 x32.

In-process are not working as expected on my Windows 10 Pro, TCC V20.11.40 x64 system.

I don't have a usable Win 7 system so your test is more information to help trouble shoot.

Anyone else with a Win 10 system care to add to the mix?
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Works fine here with Windows 10 x64 and TCC 20.11.40 x64:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15031]
Copyright 2017 JP Software Inc.  All Rights Reserved
Registered to GIGABYTE-PC

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Works fine here with Windows 10 x64 and TCC 20.11.40 x64:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15031]
Copyright 2017 JP Software Inc.  All Rights Reserved
Registered to GIGABYTE-PC

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@execstr[ (tasklist /l tcc |! echo %@INC[%@lines[con:]])]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1

What does TASKLIST look like without the pipe & filtering?
 

rps

Jul 6, 2008
436
6
="rconn, post: 45110, member: 1"]What does TASKLIST look like without the pipe & filtering?
Hope this is what you requested.
These are in a stand alone TCC. They look the same in a TCMD tab.
Code:
C:\JPSoft\TCMD20x64>echo %@execstr[ tasklist tcc]
16456* tcc               V20.11 [16456] - tasklist tcc

C:\JPSoft\TCMD20x64>echo %@execstr[ tasklist /l tcc]
16456* tcc               "C:\JPSoft\TCMD20x64\tcc.exe" title V%_tccver [%_pid]

C:\JPSoft\TCMD20x64>tasklist /l tcc
16456* tcc               "C:\JPSoft\TCMD20x64\tcc.exe" `title V%_tccver [%_pid]`

C:\JPSoft\TCMD20x64>tasklist tcc
16456* tcc               V20.11 [16456] - tasklist tcc
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
I tried it with Windows 10 and TCC 20.11.40 x86:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15042]
Copyright 2017 JP Software Inc.  All Rights Reserved
Your evaluation period expires in 30 days.
You can buy Take Command and TCC at https://jpsoft.com

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1

Try disabling your TCMD.INI and any plugins you're running. I suspect it's a configuration issue on your system.

Anybody else able to reproduce this?
 

rps

Jul 6, 2008
436
6
I tried it with Windows 10 and TCC 20.11.40 x86:

Code:
TCC  20.11.40 x64   Windows 10 [Version 6.3.15042]
Copyright 2017 JP Software Inc.  All Rights Reserved
Your evaluation period expires in 30 days.
You can buy Take Command and TCC at https://jpsoft.com

[C:\Program Files\JPSoft\TCMD20]set _tcccount=%@dec[%@execstr[ (tasklist tcc | echo %@INC[%@lines[con:]])]]

[C:\Program Files\JPSoft\TCMD20]set _tcccount
1

Try disabling your TCMD.INI and any plugins you're running. I suspect it's a configuration issue on your system.

Anybody else able to reproduce this?

I found the offending tcmd.ini directive. UnicodeOutput was set to yes in my V20 tcmd.ini, and set to NO in all my other tcmd.ini's.

Haven't a clue how that happen, but setting "UnicodeOutput=No" solved this issue.

I looked back as far as V15 and "UnicodeOutput=No" has been the setting of choice.

Everyone; Thanks for the help.
 
Similar threads
Thread starter Title Forum Replies Date
kb6ojs Want to start TCMD v20 with every Windows 10 bootup Support 3
C How to? Setting up SMTP access for Yahoo with TCMD v20 Support 7
E Fixed SHRALIAS doesn't work / SHRALIAS.EXE is missing in v20.11.35 Support 2
C sendmail in v20.00.25 x64 Support 7
S Paste in TCC/TCMD window is very slow [v20.0.22] Support 13
Alpengreis Again theme problem [v20.0.21]? Support 11
D v20 code page behavior changes Support 2
nikbackm Pipe performance in TCC v20 Support 3
vefatica v20 help nit Support 12
Glenn Bowes WAD TOOLBAR Button Definations are different v19 to v20 Support 8
rconn News Take Command V20 beta build 9 Support 0
rconn News Take Command v20 Public Beta Support 0
vefatica SETP usually fails with a 32 bit process Support 4
x13 Check if process is elevated? Support 11
Alpengreis Remaining TCMD background process (v26) ... Support 19
vefatica Tmp files from in-process pipes not deleted Support 6
Jay Sage TASKLIST Command Process Count Support 5
Joe Caverly PSHELL and out-of-process servers Support 2
CWBillow Upgrade process Support 7
Joe Caverly SETP and 32-bit process Support 2
R Fixed Internal ZIP command fails to process multiple files Support 3
C Determine process svchost is running Support 13
fpefpe WAD Python support does not process command line Support 14
M WAD tcmd.exe crashes and leaves an orphaned tcc.exe process Support 6
Stefano Piccardi replace tcc process space? Support 8
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
D Environment in elevated process Support 1
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 5
cgunhouse ProcessMonitor Does Not Work With Quoted Process Name Support 0
Phileosophos ren /s does not process subdirectories Support 3
T Starting a process blocks TCC window... Support 2
nikbackm Find out when a process has stopped Support 5
N Unable to end tcc.exe process Support 1
E CPU usage of a process Support 2
Joe Caverly LIBRARY and Pipes Support 2
vefatica Pipes ... not quite right? Support 21
vefatica BTMs and pipes ...? Support 2
vefatica Yipes, pipes! Support 4
vefatica ON ERROR and pipes? Support 8
vefatica Pipes and @CONSOLEB Support 5
vefatica SETLOCAL ... ALIAS ... pipes Support 2
P Can't disable internal tar, at least in pipes Support 3
T @Word from Lines with Pipes Support 3
vefatica Pipes make the cursor visible Support 12

Similar threads