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
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