2014-02-26 50 views
3

我正在編寫一個守護程序,監視Linux上的用戶活動。有沒有辦法檢測任意進程打開任意文件?首選語言是Python/C/C++在Linux中檢測文件打開

+0

你可以使用['inotify(7)'](http://linux.die.net/man/7/inotify)。 –

+0

相關http://stackoverflow.com/questions/2023608/check-what-files-are-open-in-python – GabiMe

+1

[如何檢查python文件夾中的文件發生了變化?](http: //stackoverflow.com/questions/12582720/how-to-check-in-python-that-a-file-in-a-folder-has-changed) –

回答