Redirecting TCC output to a different RDP Session

Jun 16, 2010
6
0
I'm currently running a BTM with TTC under a different user account on Windows 2003 Terminal server. I'm doing this because I don't want to kill the process when I log off.

However this doesn't allow me to see the console. I've added the log /w c:\temp\log.log to the .btm and with tail /f I can view the internals of the btm file while running. However it doesn't show the output of the console.

Is there a way to redirect the complete TCC console to a different RDP session. And if not are there other ways to see what's going on at an background TCC process?

Regards,

Arjan
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
Is there a way to redirect the complete TCC console to a different RDP session. And if not are there other ways to see what's going on at an background TCC process?

No to the first question (not possible in Windows).

Yes to the second question. You can redirect the entire batch file and use tail /f to view the output.
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
The short answer is no. Windows doesn't allow it. However, there are
games you can play by redirecting stdout.

You could redirect stdout to a file much like you are doing with your LOG
statement. And use TAIL in a separate process to view the contents.

I haven't tried it, but I image using a tool like Sysinternals PsExec
might work as well.

-Scott

AFeddema <> wrote on 01/04/2011 01:14:29 PM:


> I'm currently running a BTM with TTC under a different user account
> on Windows 2003 Terminal server. I'm doing this because I don't want
> to kill the process when I log off.
>
> However this doesn't allow me to see the console. I've added the log
> /w c:\temp\log.log to the .btm and with tail /f I can view the
> internals of the btm file while running. However it doesn't show the
> output of the console.
>
> Is there a way to redirect the complete TCC console to a different
> RDP session. And if not are there other ways to see what's going on
> at an background TCC process?
>
> Regards,
>
> Arjan
>
>
>
>
 
Jun 20, 2008
39
0
Re: Redirecting TCC output to a different RDP Session

How do you do that exactly?

tcc /c test.btm > c:\test\test.log doesn't seem to work.

Regards.

Arjan

*********** REPLY SEPARATOR ***********

On 4-1-2011 at 13:31 rconn wrote:


>---Quote (Originally by AFeddema)---
>Is there a way to redirect the complete TCC console to a different RDP
>session. And if not are there other ways to see what's going on at an
>background TCC process?
>---End Quote---
>
>No to the first question (not possible in Windows).
>
>Yes to the second question. You can redirect the entire batch file and
>use tail /f to view the output.
>
>
>
>


TCC 10,00,49 Windows XP [Version 5,1,2600]
TCC Build 49 Windows XP Build 2600 Service Pack 3
Registered to Arjan Feddema - 1 System License
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
Re: Redirecting TCC output to a different RDP Session

Sometimes your answers are a little too terse Rex.

tcc /c (test.btm > c:\test\test.log)

-Scott

rconn <> wrote on 01/04/2011 06:16:35 PM:


> ---Quote---
> > How do you do that exactly?
> >
> > tcc /c test.btm > c:\test\test.log doesn't seem to work.
> ---End Quote---
> Use command grouping. (Your command will redirect the output of TCC in
the

> parent process, not TEST.BTM in the child process.)
>
> Rex Conn
> JP Software
>
>
>
>
 
Dec 2, 2008
226
2
Canada
I'm currently running a BTM with TTC under a different user account on Windows 2003 Terminal server. I'm doing this because I don't want to kill the process when I log off.

However this doesn't allow me to see the console. I've added the log /w c:\temp\log.log to the .btm and with tail /f I can view the internals of the btm file while running. However it doesn't show the output of the console.

Is there a way to redirect the complete TCC console to a different RDP session. And if not are there other ways to see what's going on at an background TCC process?

Have you tried making your process into a service? I once had the same problem with some HL7 interfaces that ran as stanealone apps. I used SRVANY.EXE which is in the Windows Server 2003 Resource Kit Tools to make them into services. That was about 5 or 6 years ago but I think did what is described in the following link http://support.microsoft.com/kb/137890. This of course gives you the problem of redirecting the output from the service, but it will give you access back to the console.

Craig
 
Similar threads
Thread starter Title Forum Replies Date
Peter Murschall TPIPE generate unicode on Piping or redirecting Support 3
BobK WAD Redirecting with HEAD & TAIL Support 3
D Syntax error when redirecting eval Support 5
Stefano Piccardi issue: redirecting GOSUB output Support 11
J trouble redirecting output to environment variable Support 7
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
M Strange error messages from TCC in FTP copy Support 7
Kachupp Documentation tcc-rt versions Support 1

Similar threads