Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
同じファイルを再アップロードして 10 秒ごとに上書きする Web カメラがあります。このファイル (camFile.jpg) を監視するシェル スクリプトを作成したいと考えています。上書きされたことを検出すると、複製して camFile-TIMESTAMP.jpg という新しいファイルを作成します。誰かが私を正しい方向に向けることができますか?
inotify を使用するのが一番良いと思います。ただし、使用している言語によって異なります。
http://linux.die.net/man/7/inotify