• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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