netcat接收文件,但目录中没有生成任何事件

时间:2016-09-14 13:06:57

标签: linux ubuntu netcat inotify

我有这个脚本以特定的时间间隔发送文件

nc 10.10.10.132 1234 < /path/to/the/file;

我在接收结束时运行此脚本

nc -lkv 1234 > /home/tejas/Desktop/bmcom/a.tar.lzma;

并在运行时提供以下输出

Listening on [0.0.0.0] (family 0, port 1234)
Connection from [10.10.10.1] port 1234 [tcp/*] accepted (family 2, sport 36673)
Connection closed, listening again.
Connection from [10.10.10.1] port 1234 [tcp/*] accepted (family 2, sport 36674)
Connection closed, listening again.
Connection from [10.10.10.1] port 1234 [tcp/*] accepted (family 2, sport 36675)
Connection closed, listening again.
Connection from [10.10.10.1] port 1234 [tcp/*] accepted (family 2, sport 36676)
Connection closed, listening again.
Connection from [10.10.10.1] port 1234 [tcp/*] accepted (family 2, sport 36677)
Connection closed, listening again.

但是当我使用inotifywait -m /目录路径检查事件时。接受文件时不会生成任何事件。

可能是什么问题?提前谢谢。

0 个答案:

没有答案