dellorianes Posted August 9, 2021 Share Posted August 9, 2021 (edited) I am trying to setup a script that gives me a notification, for each action, after several rsync backup commands are executed. The commands I am using are like: # Sincronización de la carpeta Fotos rsync -avh "/mnt/user/Fotos" "/mnt/remotes/192.168.X.X_Backups_Unraid/Backup_UnRaid" if [[ $? -eq 0 ]]; then /usr/local/emhttp/webGui/scripts/notify -i normal -s "Operation complete" -d "Carpeta Fotos Sincronizada" else /usr/local/emhttp/webGui/scripts/notify -i warning -s "Operation failed" -d "Error. Carpeta Fotos no Sincronizada" fi # Sincronización de la carpeta Andrea rsync -avh "/mnt/user/Andrea" "/mnt/remotes/192.168.X.X_Backups_Unraid/Backup_UnRaid" if [[ $? -eq 0 ]]; then /usr/local/emhttp/webGui/scripts/notify -i normal -s "Operation complete" -d "Carpeta Andrea Sincronizada" else /usr/local/emhttp/webGui/scripts/notify -i warning -s "Operation failed" -d "Error. Carpeta Andrea no Sincronizada" fi The problem is that when running the scrip, it only executes the first loop, and then "stays hung" (namely, it does not run none of the other commands nor shows done button). If I execut the command /usr/local/emhttp/webGui/scripts/notify -i normal -s "Operation complete" -d "Carpeta Fotos Sincronizada" from terminal, the message succesfully apears but the action never finish ("#" does not appear and I can not exit from the command) Can someone help me with it? Thank you Edited August 9, 2021 by dellorianes Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.