Skip to content

cron job not executed due to "sh: 1: exec: '/usr/bin/php8.3': not found" #156

@fvquicke

Description

@fvquicke

Due to
escapeshellarg($phpExecutable)
on line 99 of CronRunCommand.php
the commandline in the Process is
object(Symfony\Component\Process\Process)#555 (22) {
["callback":"Symfony\Component\Process\Process":private]=>
NULL
["commandline":"Symfony\Component\Process\Process":private]=>
array(7) {
[0]=>
string(17) "'/usr/bin/php8.3'"
Notify the single quotes in the string.
This gives an error when executing the cron job:
sh: 1: exec: '/usr/bin/php8.3': not found

If you change the escapeshellarg to escapeshellcmd, it is working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions