Re: Can't get scripts to work

2000-01-06 Thread Peter Palfrader aka Weasel
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

Re: Can't get scripts to work

2000-01-06 Thread Colin Watson
[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

Re: Can't get scripts to work

2000-01-06 Thread Wayne Topa
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

Re: Can't get scripts to work

2000-01-06 Thread Michael Stenner
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.

Can't get scripts to work

2000-01-05 Thread Cameron Matheson
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

Re: Can't get scripts to work

2000-01-05 Thread Dave Sherohman
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

Re: Can't get scripts to work

2000-01-05 Thread aphro
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