Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TEE to tmp:

Aug
2,320
111
In reference to Done - TEE to tmp:

V33 says that TEE can now write to the TMPn: pseudo-devices.

Code:
E:\Utils>tmp
TMP0:
TMP1:
TMP2:
TMP3:
TMP4:
TMP5:
TMP6:
TMP7:
TMP8:
TMP9:

E:\Utils>echo %_date %_time | tee /a tmp9:
2024-09-14 13:19:39

E:\Utils>tmp
TMP0:
TMP1:
TMP2:
TMP3:
TMP4:
TMP5:
TMP6:
TMP7:
TMP8:
TMP9:

Would someone please verify if this works for them,
as it does not work for me.

Joe
 
I just can say that it doesn't works here too ...
 
TCC is doing exactly what you told it to. But you told it to do the wrong thing.

The TMPn: pseudo-devices are not global, they are unique to each TCC instance. You are creating a new TCC instance, setting the TMP9: value in the child pipe process, then exiting the child pipe process and throwing TMP9: away.

If you use a "DOS-style" pipe you'll get the expected result:

Code:
echo %_date %_time |! tee /a tmp9:
 
Thankyou Rex.

Could this information please be added to the help file?

Joe

Added: Yes, it is in the help file already.
TMPn: values are local to the current session of TCC.
 
Back
Top