From owner-freebsd-questions Wed Mar 4 22:58:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA17445 for freebsd-questions-outgoing; Wed, 4 Mar 1998 22:58:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from isp1.isp.net (root@isp1.isp.net [205.216.190.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA17427 for ; Wed, 4 Mar 1998 22:58:30 -0800 (PST) (envelope-from tim@v-com.com) From: tim@v-com.com Received: from v-com.com (v-com.com [204.139.9.74]) by mail1.isp.net (8.8.6/8.7.1) with SMTP id XAA29974 for ; Wed, 4 Mar 1998 23:00:41 -0800 (PST) Received: from timothy.v-com [192.168.50.103] by v-com.com [192.168.50.13] with SMTP (MDaemon.v2.6.rA.b6.32-R) for ; Wed, 04 Mar 98 22:25:20 -0800 Message-Id: <2.2.32.19980305062210.006e45ec@v-com.com> X-Sender: tim@v-com.com X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 04 Mar 1998 22:22:10 -0800 To: freebsd-questions@FreeBSD.ORG Subject: perl scripts to commands? X-MDaemon-Deliver-To: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've noticed several people having trouble turning their perl scripts into commands that can be run directly. Same problem here. Is this a known issue or is there a common mistake which we are all making? Here's my scenario: made the perl script "dosomething.pl" as the fist line I put "#!/usr/bin/perl" Although I installed perl to a different directory, I copied the the "perl" binary to the standard directory as the first line expects. I "chmod +x" to get it to be able to execute. And of course when I try to execute it, I get "Command not found" Somebody responded to one of the other e-mail questions I browsed and said to try "./" before the perl script command. It works, but why do I have to do it? Thanks, Tim ====================================================================== Timothy T. Smith V Communications Inc. 2290 North First Street SysAdmin suite #101 MIS Dept. San Jose CA 95131 main:(408)-965-4000 tim@v-com.com fax:(408)-965-4014 "Computers don't make mistakes. What they do, they do on purpose." - Dale (King of the Hill). ======================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message