I'm trying to setup cron on OVH web host. The script to be executed is located in : /home/[login ftp]/www/script.sh
So I've created a cron on the OVH interface with this setup:
The script contains :
#!/bin/bash
echo "Hello World"
If I execute the script on ssh console, everything is fine.
But, with the OVH cron, no way :
[2021-04-05 21:36:02] ## OVH ## END - 2021-04-05 21:36:02.246979 exitcode: 255
[2021-04-05 22:05:00] ## OVH ## START - 2021-04-05 22:05:00.778348 executing: /homez.1003/[login ftp]/www/test.sh
[2021-04-05 22:05:00] Cannot execute command for user '[login ftp]': Exec Format Error (err: -1)
[2021-04-05 22:05:00]
[2021-04-05 22:05:00] ## OVH ## END - 2021-04-05 22:05:00.813826 exitcode: 255
Lastly, here is my .ovhconfig file :
app.engine=php
app.engine.version=7.4
http.firewall=none
environment=production
container.image=stable64
I've tried many configurations without no success.
FYI, I also have an .htaccess on the root folder (so in /home/[login ftp]) that redirect on an other path. Could this have any consequence on the cron execution ?
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/path/to/
RewriteRule ^(.*)$ /path/to/$1 [L]
I got a support answer today that "Other" cronjobs are no longer working and menu entry will be gone soon.