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
 

samintz

Scott Mintz
May 20, 2008
1,336
12
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,336
12
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
212
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