Как я могу обнаружить, что какой-либо файл или папка копируется / перемещается в каталог, а затем запускается сценарий оболочки?
Файлы, скопированные / перемещенные, будут в основном иметь те же имена файлов, что и существующие. ..
Вероятно, вы должны использовать inotify, инструменты командной строки, предоставленные в пакете inotify-tools.
Также лучше должен быть пакет inoticoming. Описание:
Description: trigger actions when files hit an incoming directory
inoticoming is a daemon to watch a directory with Linux's inotify
framework and trigger actions once files with specific names are placed
in there.
.
For example it can be used to wait for .changes files uploaded
into a directory and call reprepro to put them into your repository.
Вероятно, вы должны использовать inotify, инструменты командной строки, предоставленные в пакете inotify-tools.
Также лучше должен быть пакет inoticoming. Описание:
Description: trigger actions when files hit an incoming directory
inoticoming is a daemon to watch a directory with Linux's inotify
framework and trigger actions once files with specific names are placed
in there.
.
For example it can be used to wait for .changes files uploaded
into a directory and call reprepro to put them into your repository.
Вероятно, вы должны использовать inotify, инструменты командной строки, предоставленные в пакете inotify-tools.
Также лучше должен быть пакет inoticoming. Описание:
Description: trigger actions when files hit an incoming directory
inoticoming is a daemon to watch a directory with Linux's inotify
framework and trigger actions once files with specific names are placed
in there.
.
For example it can be used to wait for .changes files uploaded
into a directory and call reprepro to put them into your repository.
Вероятно, вы должны использовать inotify, инструменты командной строки, предоставленные в пакете inotify-tools.
Также лучше должен быть пакет inoticoming. Описание:
Description: trigger actions when files hit an incoming directory
inoticoming is a daemon to watch a directory with Linux's inotify
framework and trigger actions once files with specific names are placed
in there.
.
For example it can be used to wait for .changes files uploaded
into a directory and call reprepro to put them into your repository.
Вероятно, вы должны использовать inotify, инструменты командной строки, предоставленные в пакете inotify-tools.
Также лучше должен быть пакет inoticoming. Описание:
Description: trigger actions when files hit an incoming directory
inoticoming is a daemon to watch a directory with Linux's inotify
framework and trigger actions once files with specific names are placed
in there.
.
For example it can be used to wait for .changes files uploaded
into a directory and call reprepro to put them into your repository.
Вероятно, вы должны использовать inotify, инструменты командной строки, предоставленные в пакете inotify-tools.
Также лучше должен быть пакет inoticoming. Описание:
Description: trigger actions when files hit an incoming directory
inoticoming is a daemon to watch a directory with Linux's inotify
framework and trigger actions once files with specific names are placed
in there.
.
For example it can be used to wait for .changes files uploaded
into a directory and call reprepro to put them into your repository.