teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

誤字, 文言の修正

2017/05/31 06:49

投稿

zeroyonichikyu
zeroyonichikyu

スコア37

answer CHANGED
@@ -7,4 +7,4 @@
7
7
 
8
8
  一方で, (質問者さんの環境の) MacOS のバックエンドである FSEvent には, inotify の IN_OPEN に相当するイベントは存在しないようです([参考](https://developer.apple.com/reference/coreservices/1455361-fseventstreameventflags?language=objc)).
9
9
 
10
- もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) 利用して, IN_OPEN の監視を行えばよいかと思います.
10
+ もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) 利用して, IN_OPEN の監視を行うのはいかがでしょうか.

1

誤字の修正

2017/05/31 06:49

投稿

zeroyonichikyu
zeroyonichikyu

スコア37

answer CHANGED
@@ -3,6 +3,8 @@
3
3
  [github.com/ttilley/fssm/blob/master/lib/fssm/support.rb](https://github.com/ttilley/fssm/blob/master/lib/fssm/support.rb#L5)
4
4
 
5
5
 
6
- 質問者さんの "ファイルを開いた" イベントとは, Linux 上で使用されるバックエンドである inotify が提供する [IN_OPEN](https://linux.die.net/man/7/inotify) が該当すると思われます. 一方で, (質問者さんの環境の) MacOS のバックエンドである FSEvent には, inotify の IN_OPEN に相当するイベントは存在しないようです([参考](https://developer.apple.com/reference/coreservices/1455361-fseventstreameventflags?language=objc)).
6
+ 質問者さんの "ファイルを開いた" イベントとは, Linux 上で使用されるバックエンドである inotify が提供する [IN_OPEN](https://linux.die.net/man/7/inotify) が該当すると思われます.
7
7
 
8
+ 一方で, (質問者さんの環境の) MacOS のバックエンドである FSEvent には, inotify の IN_OPEN に相当するイベントは存在しないようです([参考](https://developer.apple.com/reference/coreservices/1455361-fseventstreameventflags?language=objc)).
9
+
8
- もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) が利用できます.
10
+ もし対象のシステムを Linux 上で動かすのであれば, [rb-inotify](https://github.com/guard/rb-inotify) が利用して, IN_OPEN の監視を行えばよいかと思います.