Trying run a php script from cron
I am trying to run a php script from the cron tab and these are the errors I receive: /usr/local/bin/php php -q /home//ripper.php result Could not open input file: php /usr/local/bin/php php -/home//ripper.php result Could not open input file: php /usr/local/bin/php -/home//ripper.php result This script must be called from the command line. Running Freebsd 8.0, Php 5.2.12 I have chmod the script 644 still no luck tried it chmod 777 still no luck. I have goggled this problem and followed the tutorials but still no luck. Any ideas how I can get the script to run? I can run run it from the command line without any problems. Thanks Darrell Betts be...@norden1.com --- Looks like I Picked the Wrong Week to Stop Sniffing Glue. -- Steve McCroskey -- Live ATC Feed from Toledo Express Airport http://d.liveatc.net/ktol.m3u ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Trying run a php script from cron
I am trying to run a php script from the cron tab and these are the errors I receive: /usr/local/bin/php php -q /home//ripper.php result Could not open input file: php /usr/local/bin/php php -/home//ripper.php result Could not open input file: php /usr/local/bin/php -/home//ripper.php result This script must be called from the command line. Running Freebsd 8.0, Php 5.2.12 I have chmod the script 644 still no luck tried it chmod 777 still no luck. I have goggled this problem and followed the tutorials but still no luck. Any ideas how I can get the script to run? I can run run it from the command line without any problems. Instead of /usr/local/bin/php php -q /home//ripper.php try /usr/local/bin/php -f /home//ripper.php or just /usr/local/bin/php /home//ripper.php You can also try a script like this one: #!/usr/local/bin/php -f ?php echo foo\n; ? And running it like this: /home//ripper.php after chmod'ing it to be executable. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org