From owner-freebsd-questions@FreeBSD.ORG Sun Jan 17 20:01:24 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 65FB31065679 for ; Sun, 17 Jan 2010 20:01:24 +0000 (UTC) (envelope-from dmontalvo@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5858FC0C for ; Sun, 17 Jan 2010 20:01:24 +0000 (UTC) Received: by pwi15 with SMTP id 15so1430407pwi.3 for ; Sun, 17 Jan 2010 12:01:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=h28HMQB9kdYHnsJjeH9LTjLRhowiWHB3P9Wlhj7zCkI=; b=G5XFYVGX6GAa3LA47Rn2hQALj/sOQZn4qVocMYer2XIZS4Kx81kvEi+xBeaDuFb8Eb eshgEvvd40N1hpo3NqHCSNsyjQHw4yqBEfddFkKnInR7FwOIgbVNrCh2UdUOgnZf46hQ tkqP4cFOec89AkE5XGb6lz5+7odyTOKZkvELk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rQNziFegR4xeuEinpBTLwD1mOnRbye4GRiKuR/BBqaIGtYPWwimUaYgq7D2rSCVHSk kG/PuPAMyiY3Kd9x6ECTNqKRpO3iLIV08z3yeQwUKvYKrglBgOigHpTwpYbhpJrY44Mf o5CmZz6lH/xuY6ANkPFjfDvCV6T1EIM2Ho5t8= MIME-Version: 1.0 Received: by 10.142.1.27 with SMTP id 27mr3591588wfa.33.1263758483738; Sun, 17 Jan 2010 12:01:23 -0800 (PST) In-Reply-To: References: <91E8AD4B-C321-41C7-BA0E-E89E4D5CE40F@olivent.com> Date: Sun, 17 Jan 2010 12:01:23 -0800 Message-ID: From: Diego Montalvo To: mikel king Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Running PHP File under Crontab... 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: Sun, 17 Jan 2010 20:01:24 -0000 I am using " 2010/1/17 mikel king : > > On Jan 17, 2010, at 2:30 PM, Diego Montalvo wrote: > >> CLI meaning, if I can run and excute in >> command line, =A0a php file can run in crontab? =A0doing the following i= n >> shell: "# php helloworld.php" - "hello world" is produced... >> >> Thanks! >> >> > > > ok then do you have #!/usr/local/bin/php as your first line of the script= ? > Or are you using the bash exec command to run the code in your shell scri= pt? > > Also you can try placing the path to the php CLI executable in the cronta= b. > > > >