From owner-freebsd-questions Wed Mar 4 23:55:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA27779 for freebsd-questions-outgoing; Wed, 4 Mar 1998 23:55:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.netcetera.dk (root@sleipner.netcetera.dk [194.192.207.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA27772 for ; Wed, 4 Mar 1998 23:55:10 -0800 (PST) (envelope-from leifn@image.dk) Received: (from uucp@localhost) by mail.netcetera.dk (8.8.8/8.8.8) with UUCP id IAA10264 for freebsd-questions@freebsd.org; Thu, 5 Mar 1998 08:49:33 +0100 Received: by swimsuit.swimsuit.roskildebc.dk (0.99.970109) id AA03871; 05 Mar 98 08:52:25 +0100 From: leifn@image.dk (Leif Neland) Date: 05 Mar 98 08:35:24 +0100 Subject: perl scripts to commands? Message-ID: Organization: Fidonet: Swimsuit Safari. Go for it. To: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 05 Mar 98 07:22:10 tim@v-com.com wrote regarding perl scripts to commands? t> And of course when I try to execute it, I get "Command not found" t> t> Somebody responded to one of the other e-mail questions I browsed t> and said to try "./" before the perl script command. t> t> It works, but why do I have to do it? Because the current directory is not in the path. Because, especially as root, you don't want to execute whatever program which happens to be in the directory you are in. You want to execute the programs which are in your path. eg /bin/ls, not /home/eviluser/ls, which could be the script "rm -rf/" if you are standing in /home/eviluser, this bad_guy could have made such a script. Leif Neland leifn@image.dk --- |Fidonet: Leif Neland 2:234/49 |Internet: leifn@image.dk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message