Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I output a text file to a TCP port on Windows Vista using built-in software? For example,

type TextFile.csv | telnet localhost 1979

This doesn't work: The process tried to write to a nonexistent pipe.

share|improve this question
    
Shouldn't this be moved to Super User? –  Cristian Ciupitu Sep 14 '09 at 15:12
add comment

2 Answers

up vote 15 down vote accepted

The tool to use is probably the windows ports of netcat.

share|improve this answer
    
Dang... beat me to it. ;) –  Sean Earp May 19 '09 at 21:27
    
If you're at work, some AV applications (McCrappy) will identify netcat as a virus. –  duffbeer703 May 19 '09 at 21:48
    
SEP identified it as a virus, and it worked great. I replaced "telnet" with "nc" and the pipe worked as expected. Thanks! –  George Tsiokos May 19 '09 at 22:00
add comment

Hak5 talked about just this in a recent episode.

http://www.hak5.org/episodes/episode-511

The discussion starts around 12 minute mark.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.