./pingCheck.php: line 4: syntax error near unexpected token `dirname'
'/pingCheck.php: line 4: `require_once( dirname(FILE) . '/../functions.php' );
[root@ipmgmt scripts]# ./discoveryCheck.php
No such file or directory1: ?php
command not foundp: line 2:
./discoveryCheck.php: line 3: //: is a directory
./discoveryCheck.php: line 4: syntax error near unexpected token dirname'
'/discoveryCheck.php: line 4:require_once( dirname(FILE) . '/../functions.php' ); [root@ipmgmt scripts]#
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[root@ipmgmt scripts]# /usr/bin/php ./discoveryCheck.php
PHP Warning: exec(): Unable to fork [/bin/ping -c 1 -w 1 10.70.26.85 1>/dev/null 2>&1] in /var/www/phpipam/functions/functions-network.php on line 3288
PHP Warning: exec(): Unable to fork [/bin/ping -c 1 -w 1 10.70.26.86 1>/dev/null 2>&1] in /var/www/phpipam/functions/functions-network.php on line 3288
Warning: exec(): Unable to fork [/bin/ping -c 1 -w 1 10.70.26.85 1>/dev/null 2>&1] in /var/www/phpipam/functions/functions-network.php on line 3288
PHP Fatal error: Uncaught exception 'Exception' with message 'pcntl_fork() returned a status of -1. No new process was created' in /var/www/phpipam/functions/scripts/Thread.php:160
Stack trace:
thrown in /var/www/phpipam/functions/scripts/Thread.php on line 160
Fatal error: Uncaught exception 'Exception' with message 'pcntl_fork() returned a status of -1. No new process was created' in /var/www/phpipam/functions/scripts/Thread.php:160
Stack trace:
thrown in /var/www/phpipam/functions/scripts/Thread.php on line 160
Warning: exec(): Unable to fork [/bin/ping -c 1 -w 1 10.70.26.86 1>/dev/null 2>&1] in /var/www/phpipam/functions/functions-network.php on line 3288 [root@ipmgmt scripts]#
Pizu
Last edit: David Micallef 2015-09-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Already a thing.
Put these in cron:
/var/www/html/phpipam/functions/scripts/discoveryCheck.php
/var/www/html/phpipam/functions/scripts/pingCheck.php
Hi,
Sorry for the late reply.
Am having the below error:
./discoveryCheck.php: line 3: //: is a directory
./discoveryCheck.php: line 4: syntax error near unexpected token
dirname' '/discoveryCheck.php: line 4:require_once( dirname(FILE) . '/../functions.php' );[root@ipmgmt scripts]#
Hi,
Added php path before the command and worked..
/usr/bin/php ./pingCheck.php < Worked perfect :)
Issue am having now is the below:
Pizu
Last edit: David Micallef 2015-09-07