@Ron
Depending upon hosting setup, your commands might not be finding the correct version of php-cli ... so please do this and see:
When you first access your account via ssh, issue:
which php
That should show you a path ... something like /usr/bin/php
Then use that full path with -v (version) .... as per example:
/usr/bin/php -v
You should see something like:
PHP 8.2.27 (cli) (built: Dec 17 2024 11:39:23) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.2.27, Copyright (c) Zend Technologies
with Zend OPcache v8.2.27, Copyright (c), by Zend Technologies
The cli is the command line php.
So if that didn't find the right php-cli, change directories into your moodle code and issue the same commands with a shorter path to the cli scripts.
cd /path/to/moodlecode/
then
php admin/cli/adhoc_task.php --help
Also, would help to see what those commands said! Your command above doesn't show a --list option. :|
'SoS', Ken