# Cron task is not executed

**URL:** <https://forum.hestiacp.com/t/cron-task-is-not-executed/17043>\
**Category:** Cron Jobs\
**Created:** [December 17, 2024, 12:49pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043 "2024-12-17T12:49:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inforaga](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/inforaga/32/7805_2.png) [@Inforaga](https://forum.hestiacp.com/u/Inforaga)\
**Post date:** [December 17, 2024, 12:49pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/1 "2024-12-17T12:49:40Z")

</div>

Good afternoon, I have several tasks scheduled for users and it seems that many of them are not executed. I will give you an example because if I make the call from a browser window, it is executed correctly, but as a task it does not work for me. “get [https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise](https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise) put the token&job=1”

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [December 17, 2024, 1:31pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/2 "2024-12-17T13:31:52Z")

</div>

Token no valido

---

<div class="post-metadata">

**Author:** ![Inforaga](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/inforaga/32/7805_2.png) [@Inforaga](https://forum.hestiacp.com/u/Inforaga)\
**Post date:** [December 17, 2024, 2:05pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/3 "2024-12-17T14:05:47Z")

</div>

I have not put the correct token for security, but with the correct token directly in a browser it works but as a cron task it does not. Could it be because of the get call?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [December 17, 2024, 4:45pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/4 "2024-12-17T16:45:39Z")

</div>

What command do you use?

---

<div class="post-metadata">

**Author:** ![Inforaga](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/inforaga/32/7805_2.png) [@Inforaga](https://forum.hestiacp.com/u/Inforaga)\
**Post date:** [December 17, 2024, 4:47pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/5 "2024-12-17T16:47:27Z")

</div>

> [@Inforaga](#):
>
> “get [https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise](https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise) put the token&job=1”

with the quotes and the correct token this is the command “get [https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise](https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise) put the token&job=1”

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [December 17, 2024, 4:49pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/6 "2024-12-17T16:49:34Z")

</div>

Try

`/usr/bin/wget https://www.pomelosex.es/Backoffice/gesioimportdosCron.php?token=aquise`

---

<div class="post-metadata">

**Author:** ![Inforaga](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/inforaga/32/7805_2.png) [@Inforaga](https://forum.hestiacp.com/u/Inforaga)\
**Post date:** [December 17, 2024, 5:00pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/7 "2024-12-17T17:00:10Z")

</div>

> [@eris](#):
>
> /usr/bin/wget

Perfect, thanks but the correct command that worked for me is “/usr/bin/wget” “htt…”

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [January 16, 2025, 5:00pm UTC](https://forum.hestiacp.com/t/cron-task-is-not-executed/17043/8 "2025-01-16T17:00:53Z")

</div>

Closed on January 16, 2025, 5:00pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
