• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Scheduled Task with arguments not working

LordReaper

New Pleskian
Server operating system version
Ubuntu 20.04
Plesk version and microupdate number
18.0.60_build1800240421
Hi,
i am trying to set up a cronjob to a php file located in the folder of a website. What i basically try to do is to get this URL: "https://myhop.com/plugins/myplugin/sync.php?action=reindex" in a cronjob. So i set up a scheduled task and chose "run a php script". In the field "arguments" i try to enter "reindex" but this does not work The script runs but finishes after one second. It says succesful but the problem is that the argument is not recognized correctly. How do i have to set up the cronjob, that the argument "reindex" is being triggered? When i enter nothing in the argument field i get an error that i should provide an argument. On the other hand i can also write other words in the argument field and the result is the same. It runs a second, says it runned succesfully but nothing happend.
Can someone tell me how to run the task and how to enter the arguments there, that this happens? Can i run this "sync.php?action=reindex" in a cronjob? Or how do i have to enter the arguments there? I als tried those variations:
--reindex
-reindex
action=reindex
--action=reindex

none of them works

Thanks for any ideas or help.

Greetings
 

Attachments

  • cronjob.jpg
    cronjob.jpg
    56.8 KB · Views: 5
Back
Top