From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 19:28:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C88C216A4CF for ; Fri, 20 Aug 2004 19:28:33 +0000 (GMT) Received: from grog.secure-computing.net (grog.secure-computing.net [63.228.14.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53B4743D4C for ; Fri, 20 Aug 2004 19:28:33 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from Nomad (nat-server.secure-computing.net [63.228.14.245]) (authenticated bits=0)i7KJRhNS026619; Fri, 20 Aug 2004 14:27:58 -0500 (CDT) (envelope-from ecrist@secure-computing.net) From: "Eric Crist" To: "'Bill Moran'" , "'Mark Jayson Alvarez'" Date: Fri, 20 Aug 2004 14:20:52 -0500 Message-ID: <010a01c486ea$d584dca0$6501a8c0@Nomad> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <20040820111010.7b74594b.wmoran@potentialtech.com> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on grog.secure-computing.net X-Virus-Status: Clean cc: freebsd-questions@freebsd.org Subject: RE: Humble questions for web developers in freebsd. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2004 19:28:33 -0000 owner-freebsd-questions@freebsd.org wrote: >> 2. Do you know how can I run a perl program in freebsd without having >> it preceded with the word perl? (I tried changing its mode to 755 and >> also putting it to /usr/local/bin but it didn't work(don't laugh at me >> please.. I'm still learning:=). > > Just call the program. If it has X permissions for available > for you (the user you're trying to run it as) it will notice > the #!/usr/bin/perl at the head of the file an user perl to > interpret the script. I noticed you had > #!/usr/local/bin/perl in your earlier comments. Use "which > perl" to find out the path to perl on your system and use > that. If that first line has the wrong path, your scripts won't run. > Another point here. If you're in the directory where this program resides, you need to prepend a ./ before the command. This is another Unix thing, there to protect yourself from running the wrong command. The ./ tells the system you want to run a program from the current directory, and not something from within your PATH variable. HTH Eric F Crist Best Access Systems 11300 Rupp Dr. Burnsville, MN 55337 Phone: 952.894.3830 Cell: 612.998.3588 Fax: 952-894-1990