I have a PHP script that I wrote that I would like to execute once every minute. To do this, I have added a scheduled job for it via the OMV WebUI, but I cannot get it to execute once every minute. The only way I can get it to run is by clicking the "Run" button in the UI. Does anyone have any suggestions? I have posted a screenshot of my configuration settings below.
Run PHP Script Every Minute
-
- OMV 4.x
- David B
-
-
Uncheck the every n minute and replace the 1 with a star.
-
Uncheck the every n minute and replace the 1 with a star.
Okay, I have made that change, but it still appears to not be working properly.
-
Okay, I have made that change, but it still appears to not be working properly.
I would change two things:
First, specify the full path for php - /usr/bin/php
Second, put the script in a filesystem that isn't mounted noexec (all data drives are mounted noexec). If you don't think that is it, at least put the leading slash in front of sharedfolders -
I would change two things:
First, specify the full path for php - /usr/bin/php
Second, put the script in a filesystem that isn't mounted noexec (all data drives are mounted noexec). If you don't think that is it, at least put the leading slash in front of sharedfoldersThanks! It looks like using /usr/bin/php as well as moving the script to an exec-mounted folder worked! For anyone else who comes along with a similar problem, I am not sure if either of those things had any effect individually, as I decided to make both changes in one go.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!