0

I just starting writing a new interface where I need to process a file after it has been ftp'd into my server. Is incron better than inotify in the long run or should I choose something else? BTW, I am using vsftpd.

p.s. I have already looked at other articles at this site but most of them are over 5 years old. I'm looking for the best solution in 2022.

neilrieck
  • 11
  • 4
  • You want to use the related `inotifywait` to watch for new files in the download directory and then do whatever you need with the file. – David C. Rankin Feb 04 '22 at 21:45
  • I only asked because incron (and any events registered via incrontab) will survive a reboot. While there is much more written about inotify, event traps created this way need to be reregistered after every reboot (unless I am mistaken or someone has a work around) – neilrieck Feb 07 '22 at 14:21
  • No, you are thinking right. The `inotify` and `inotifywait` functions are closely related. I haven't made use of `incron`. Generally when I need to watch for changes, I will start the watch process during boot (if system-wide) or though the run control file if on a per-user basis. I've always used `inotifywait` for that purpose. – David C. Rankin Feb 08 '22 at 01:06
  • I just realized that I may need to switch from vsftpd to proftpd – neilrieck Apr 06 '22 at 14:39
  • Not sure what features proftpd provides that vsftpd doesn't. I've used vsftpd for more than a decade and haven't run into any shortcomings. – David C. Rankin Apr 06 '22 at 18:33
  • proftpd offers some interesting features via the optional mod_exec feature (provided you are not using chroot). – neilrieck Apr 08 '22 at 16:52

0 Answers0