On Wed, Jan 05, 2000 at 05:15:48PM -0600, Dave Sherohman wrote:
By default, the current directory (.) is not on your path. You can add it,
but it opens up some security holes. (I can put a program named cd in a
random directory and the next time you go there, it gets executed when you
try
[EMAIL PROTECTED] (Cameron Matheson) wrote:
I can't get any of my scripts to work. I'm just trying to start simple, by
making a script to delete all my FreeCiv save files. I use 'vi' and type
the following:
# !/bin/sh
rm civgame*
clear
pwd
Subject: Re: Can't get scripts to work
Date: Thu, Jan 06, 2000 at 02:54:20AM +
In reply to:Colin Watson
Quoting Colin Watson([EMAIL PROTECTED]):
| [EMAIL PROTECTED] (Cameron Matheson) wrote:
| I can't get any of my scripts to work. I'm just trying to start simple
On Wed, Jan 05, 2000 at 11:29:44PM -0500, Wayne Topa wrote:
(Why does this work, by the way?
Is /bin/sh the default interpreter?)
I also thought this (Colin's comment), was the problem so I changed
some of my bash scripts to test it. At least on my slink box, that
isn't the answer.
Hey,
I can't get any of my scripts to work. I'm just trying to start simple, by
making a script to delete all my FreeCiv save files. I use 'vi' and type
the following:
# !/bin/sh
rm civgame*
clear
pwd
ls -l
Then I type chmod u+x
Cameron Matheson said:
Then I type chmod u+x removeCiv.sh to add execute permission to myself,
but when i type removeCiv.sh at the prompt i get the error bash:
removeCiv.sh: command not found
Try
/removeCiv.sh
or move the script to an 'executables' directory, such as /usr/local/bin.
By
by default, the current working directory (CWD) is not in your $PATH
so append a ./ to the command, so in this case ./removeCiv.sh
or you can modify your path, in /etc/profile (for bash and compadible
shells) add
export PATH=$PATH:.
although it is somewhat of a security risk to have . in your
7 matches
Mail list logo