Page Header Image

Cronjob — No such file or directory

Home Forums UM Switcher Cronjob — No such file or directory

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by RickWeir RickWeir 2 months, 1 week ago.

  • Author
    Posts
  • #82739
    RickWeir
    RickWeir
    Member

    I’m getting an error from the cron daemon — no such file or directory. I cut-n-pasted the URL from the UM-Switcher setup. What did I do wrong?

    /bin/sh: https://kcialliance.org/wp-admin/admin-ajax.php?action=umswticher_cronjob: No such file or directory

  • #82744
    Roy Pepito
    Roy Pepito
    Moderator

    Hi Rick,

    Looks like its in your cronjob configuration. It would be helpful if you can give us more details about it.

    Regards

    Roy

    • This reply was modified 2 months, 2 weeks ago by Roy Pepito Roy Pepito.
  • #82746
    RickWeir
    RickWeir
    Member

    Minute Hour Day Month Weekday Command:
    0 0 * * * https://kcialliance.org/wp-admin/admin-ajax.php?action=umswticher_cronjob

    Attachments:
  • #82749
    Roy Pepito
    Roy Pepito
    Moderator

    Hi Rick

    I’m not familiar with your cronjob settings on your hosting but looks like you need enter some specially command. I still remember that I did this before on my personal website and I solved the issue by calling the hosting support. I’ll do some research to help you on this but if you can also contact your hosting support, that would be good.

    Regards

    Roy

    • This reply was modified 2 months, 1 week ago by Roy Pepito Roy Pepito.
  • #82751
    RickWeir
    RickWeir
    Member

    What program should run this file? /bin/sh isn’t going to be able to run a URL. Should I be calling curl instead? Or, why not just use the file path and feed it to php?

    • This reply was modified 2 months, 1 week ago by RickWeir RickWeir.

You must be logged in to reply to this topic.