Hello,
I run a backup-script with a rule by pimatic. Sometimes the backup takes several minutes. I noticed, that during running this script, my shell-sensors do not get updated. Is that normal behavior? Can i run my backup-script somehow in background to avoid that?
-
Shell execute plugin - multiple processes
-
You can try to put a “&” at the end of the command. So the shell will not wait until the script has finished
.\backupscript.sh &
-
@m1rk0 said in Shell execute plugin - multiple processes:
Is that normal behavior?
It should not block unless you have set
sequential
totrue
in the plugin configuration. However, note commands executed by shell-execute are expected to terminate in a timely. If you have long running processes you should move them to the background (see link below)Can i run my backup-script somehow in background to avoid that?
Do you really need to run the backup script via pimatic shell execute?
May be you can use cron instead.If not, here some hints on moving a shell scipt to he background:
https://unix.stackexchange.com/questions/403895/automatically-move-a-script-into-the-background"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law