From owner-freebsd-questions Mon Aug 28 12: 1: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cogito.cam.org (Cogito.CAM.ORG [198.168.100.2]) by hub.freebsd.org (Postfix) with ESMTP id D272637B422 for ; Mon, 28 Aug 2000 12:01:05 -0700 (PDT) Received: from devises-or.com (USRH-5-18.HIP.CAM.ORG [204.19.188.18]) by cogito.cam.org (8.11.0/8.11.0.Beta1) with ESMTP id e7SJ0Ws05992; Mon, 28 Aug 2000 15:00:32 -0400 Message-ID: <39AAB5EB.AD0F8F1D@devises-or.com> Date: Mon, 28 Aug 2000 14:56:43 -0400 From: Claude Cormier Organization: Ormetal Inc. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,fr MIME-Version: 1.0 To: igorr@crosswinds.net Cc: freebsd-questions@FreeBSD.ORG, "Andresen,Jason R." Subject: Re: Newbie need help to execute a shell script 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Try to create this file on Unix side. > cat >disp2 > _enter_your_script_ > _press_Ctrl+D > chmod 755 disp2 > ./disp2 Bingo...! Now both "disp2" and "./disp2" works. THanks... So that is good for my small script, but what if my shell script does: #!/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 ? Claude. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message