Crono job and sc

hi,

im trying to create a job that launches a trial balnk application of sc restitusce me the following error

PHP Warning: include_once (…/_ lib / lib / php / nm_utf8.php): failed to open stream: No such file or directory in /var/www/assistenza/aggiorna_date/aggiorna_date.php on line 1343
PHP Warning: include_once (): Failed opening '…/lib/lib/php/nm_utf8.php’ for inclusion (include_path = ‘.: / Usr / share / php: / usr / share / pear’) in / var / www / support / aggiorna_date / aggiorna_date.php on line 1343
PHP Warning: include_once (…/
lib / lib / php / nm_ctrl_app_name.php): failed to open stream: No such file or directory in /var/www/assistenza/aggiorna_date/aggiorna_date.php on line 1347
PHP Warning: include_once (): Failed opening ‘…/_lib/lib/php/nm_ctrl_app_name.php’ for inclusion (include_path = ‘.: / Usr / share / php: / usr / share / pear’) in / var / www / support / aggiorna_date / aggiorna_date.php on line 1347
PHP Fatal error: Call to undefined function SC_dir_app_ini () in /var/www/assistenza/aggiorna_date/aggiorna_date.php on line 1349

someone can help me?
i have scheduled:

php /var/www/assistenza/aggiorna_date/aggiorna_date.php

I don’t think you can run it as a command line php script.

Maybe you could try wget or curl?

Something like ‘wget /var/www/assistenza/aggiorna_date/aggiorna_date.php’

Check the wget or curl documentation for the options (especially if the app requires authentication)

i try with wget /var/www/assistenza/aggiorna_date/aggiorna_date.php Output from command wget /var/www/assistenza/aggiorna_date/aggiorna_date.php .

/var/www/assistenza/aggiorna_date/aggiorna_date.php: Scheme missing. any idea??

Come to think of it, you have to use the http URL not the filesystem path

E.g.

wget http://server/aggiorna_date/aggiorna_date.php

with:

wget http://XXX.XX.XX.XX/aggiorna_date/aggiorna_date.php…

Work :wink: