From owner-freebsd-questions Mon Aug 28 19:39: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from srcso.globis.ru (globis.ru [212.248.80.7]) by hub.freebsd.org (Postfix) with ESMTP id 341F337B43E for ; Mon, 28 Aug 2000 19:38:56 -0700 (PDT) Received: from raduga.dyndns.org (raduga.sochi.net [212.248.82.76]) by srcso.globis.ru (8.9.3/8.9.3) with ESMTP id GAA16953 for ; Tue, 29 Aug 2000 06:55:36 +0400 (MSD) (envelope-from igor@raduga.dyndns.org) Received: (from igor@localhost) by raduga.dyndns.org (8.10.0/8.10.0) id e7T2cp325182 for freebsd-questions@FreeBSD.ORG; Tue, 29 Aug 2000 06:38:51 +0400 Date: Tue, 29 Aug 2000 06:38:51 +0400 From: Igor Roboul To: freebsd-questions@FreeBSD.ORG Subject: Re: Newbie need help to execute a shell script Message-ID: <20000829063851.A25163@linux.rainbow> Reply-To: igorr@crosswinds.net Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20000828134505.EBA6F1F17@static.unixfreak.org> <39AA719A.1F3B9E97@devises-or.com> <20000828182757.A21602@linux.rainbow> <39AA7B69.D231BA3C@devises-or.com> <20000828190308.A21842@linux.rainbow> <39AA96D1.2C478561@devises-or.com> <20000828205830.A22674@linux.rainbow> <39AAB5EB.AD0F8F1D@devises-or.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre4i In-Reply-To: <39AAB5EB.AD0F8F1D@devises-or.com>; from techsupport@devises-or.com on Mon, Aug 28, 2000 at 02:56:43PM -0400 X-Operating-System: Linux linux.rainbow 2.2.14-plus-SMP X-Best-Window-Manager: Window Maker (www.windowmaker.org) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Aug 28, 2000 at 02:56:43PM -0400, Claude Cormier wrote: > > #!/bin/sh > php /cgi-bin/test.php > > This gives me an error as well since php cannot find test.php. So I > guess I must also create test.php on the unix side? I am accessing > through telnet... so what are the alternatives: ed? > > Or is there a utility I can use ? Of course, no. You even does not need create other scripts on Unix side. Just use ASCII mode for FTP when you transfer it. About PHP. When you use /cgi-bin it is relative to WWW server root. If you wish do this from shell, then find this root by 'locate cgi-bin' -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga" http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message