Unidirectional file transfer via UDP
Budget: €30 – €250 EUR
There is a need to design two bash scripts.
INPUT Script
1. Takes a file and does two thinks
- send file name via nc command to the OUTPUT port 45700
- send the content of the file to the OUTPUTport 45701
Command to be used:
nc -u 192.168.1.100 45701< file_name.tar.Z
OUTPUT Script
2. It listens via nc command to incoming data
- for the file name on the port 45700
- for the data on port 45701
Command to be used:
nc -v -u -l -p 45701> file_name_received_via_port_45700
Requirements
R1 - the INPUT script does not receive any feedback from the OUTPUT script -> unidirectional transfer
R2 - Has to be a bash script
R3 - UDP transfer ONLY
R4 - use nc command
R5 - has to be called from the command line and correctly terminated after done.
R6 - Linux only
Acceptance
The project will be accepted when the file is successfully received on the OUT side received and stored under the name as on source.
INPUT Script
1. Takes a file and does two thinks
- send file name via nc command to the OUTPUT port 45700
- send the content of the file to the OUTPUTport 45701
Command to be used:
nc -u 192.168.1.100 45701< file_name.tar.Z
OUTPUT Script
2. It listens via nc command to incoming data
- for the file name on the port 45700
- for the data on port 45701
Command to be used:
nc -v -u -l -p 45701> file_name_received_via_port_45700
Requirements
R1 - the INPUT script does not receive any feedback from the OUTPUT script -> unidirectional transfer
R2 - Has to be a bash script
R3 - UDP transfer ONLY
R4 - use nc command
R5 - has to be called from the command line and correctly terminated after done.
R6 - Linux only
Acceptance
The project will be accepted when the file is successfully received on the OUT side received and stored under the name as on source.