From owner-freebsd-questions Thu Mar 5 00:28:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA02247 for freebsd-questions-outgoing; Thu, 5 Mar 1998 00:28:17 -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 AAA02241 for ; Thu, 5 Mar 1998 00:28:12 -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 AAA02221 for ; Thu, 5 Mar 1998 00:30:24 -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 ; Thu, 05 Mar 98 00:01:54 -0800 Message-Id: <2.2.32.19980305075844.006cffc0@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 23:58:44 -0800 To: freebsd-questions@FreeBSD.ORG Subject: perl: scripts to commands...weird X-MDaemon-Deliver-To: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doing some playing around on my own I discovered a few oddities in the process of getting my perl scripts to be command line executable. 1. the usual "#!/path_to_my_perl_binary/perl" must be the first line...duh. 2. gotta "chmod +x myperlscript.pl", yup. now here's the weird stuff... 3. I have to move it into one of the bin directories that is in my shell path. (I'm using csh as default) 4. I have to launch another shell or log out and log back in to my current one for it all to take effect. I tested it. If I move it out of the bin directory I can not execute it anymore. If I move it into different bin directory, still being one that I have in my profile path, it won't work. Not until I start another shell or log out/in. I can understand some of this limitation as I'm telling my shell to only look in certain directories and those in a certain order as well, but what I don't understand is why I have to play this musical shell game to get it to go. Can anybody enlighten? 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