BASH 646
Inotifywait darktable By pronto on 17th May 2024 08:04:46 PM
  1. #!/usr/bin/bash
  2.  
  3. MONDIR="/var/lib/docker.rage/ftp_home/usera7/ftp/raw"
  4. JPGDIR="/var/lib/docker.rage/ftp_home/usera7/ftp/jpg/"
  5. inotifywait -m -e close_write --format '%w%f' "${MONDIR}" | while read NEWFILE
  6. do
  7.         echo "hi ${NEWFILE}"
  8.         outname=$(basename $NEWFILE | sed 's/ARW/jpg/')
  9.         darktable-cli ${NEWFILE} $JPGDIR$outname
  10.  
  11. done

ifconfig paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.