From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 17:37:01 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E434106567D for ; Tue, 9 Mar 2010 17:37:01 +0000 (UTC) (envelope-from betts@norden1.com) Received: from picard1.norden1.com (99-32-48-19.uvs.toldoh.sbcglobal.net [99.32.48.19]) by mx1.freebsd.org (Postfix) with ESMTP id 58C748FC1F for ; Tue, 9 Mar 2010 17:37:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by picard1.norden1.com (Postfix) with ESMTP id B82A83F48B for ; Tue, 9 Mar 2010 11:57:19 -0500 (EST) Received: from picard1.norden1.com ([127.0.0.1]) by localhost (picard1.norden1.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 52668-09 for ; Tue, 9 Mar 2010 11:57:09 -0500 (EST) Received: from [192.168.1.66] (Macintosh [192.168.1.66]) (Authenticated sender: betts@norden1.com) by picard1.norden1.com (Postfix) with ESMTPA id 2EC993F48A for ; Tue, 9 Mar 2010 11:57:09 -0500 (EST) Message-Id: <551AED7A-2336-40B6-B8B8-3EF2637D03B0@norden1.com> From: Darrell Betts To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Apple Message framework v936) Date: Tue, 9 Mar 2010 11:57:07 -0500 X-Mailer: Apple Mail (2.936) X-Virus-Scanned: Maia Mailguard Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Trying run a php script from cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2010 17:37:01 -0000 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/xxxx/ripper.php result Could not open input file: php /usr/local/bin/php php -/home/xxxx/ripper.php result Could not open input file: php /usr/local/bin/php -/home/xxxx/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 betts@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