Tests: Complete
Listener gives a count PASSED
Listener gives a count and continuous PASSED
Count seems right test1 PASSED
Count seems right test2 FAILED
1. Here is I have done I created file /root/script1 file which consists of the counts of the files in root
2. scr.sh
Code: Select all
#!/bin/bash
ls | wc -l > /root/counts
Code: Select all
netcat -l 127.0.0.1 -p 790 -e 'cat /root/script1' --continuous
Code: Select all
netcat 127.0.0.1 790