On 06-Jan-2000 Dave Sherohman wrote:
> Wayne Topa said:
>> All of these worked : #!/bin/sh, # !/bin/sh, #! /bin/sh and
>> the script even worked _without_ any #! line _at all_!!! I have no
>> idea why it worked, but it does?
>
> I suspect that it's because you're running it from bash, so b
Wayne Topa said:
> All of these worked : #!/bin/sh, # !/bin/sh, #! /bin/sh and
> the script even worked _without_ any #! line _at all_!!! I have no
> idea why it worked, but it does?
I suspect that it's because you're running it from bash, so bash gets to
interpret it if nobody else is spec
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
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 tr
[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
>
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
>
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 p
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.
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 removeCiv
9 matches
Mail list logo