Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netcat works in some areas, not in others

Status
Not open for further replies.

mduddy

Programmer
Jan 24, 2002
8
US
I am a complete NOVICE with SCO Unix, but have inherited a database system running on it. In the database programming, Netcat is used to send a text file to a system listening on a port, then catch a response from that system.

The syntax of the command string is:
cat sendfile.txt | netcat -w 2 ipaddress 2500 > receivefile.txt

where:
"sendfile.txt" is the file sending out
"ipaddress 2500" is the system the file is being sent to, that system is listening on port 2500
"receivefile.txt" is the name of the file to catch the return info

This all works fine in most of the different programs that use the command (syntax is identical). In one program, however, it does not appear that netcat is actually sending the file. The file being sent exists, and the command appears to run without any error. But nothing ever gets to target system, and the program behaves as if a blank file was returned.

Please let me know if anyone can help.
Thanks!
Margaret
 
Is this a separate issue to your other thread, or are they both resolved now?

Annihilannic.
 
Both issues are resolved now. The problem turned out to be a memory condition in the database program where the netcat function was not working.

Thanks!
Margaret
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top