Date: 05 Mar 98 08:35:24 +0100 From: leifn@image.dk (Leif Neland) To: freebsd-questions@FreeBSD.ORG Subject: perl scripts to commands? Message-ID: <b0f_9803050852@swimsuit.swimsuit.roskildebc.dk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b0f_9803050852>