1. You have to be in the directory where the script resides.
2. Then:
chmod +x test.sh
3. Then:
./test.sh


On Mon, Oct 10, 2016 at 8:10 PM, Richard Owlett <rowl...@cloud85.net> wrote:

> On 10/10/2016 8:00 AM, Robert Parker wrote:
>
>> you need to do:
>> ./test.sh
>> instead.
>>
>>
> That just fails differently by responding:
>
> : No such file or directory
>
> I had seen that suggestion before while searching the web - don't recall a
> page reference. At the moment I using http://tldp.org/LDP/Bash-Begin
> ners-Guide/html/sect_02_01.html as my reference.
>
>
>
>> On Mon, Oct 10, 2016 at 7:54 PM, Richard Owlett
>> <rowl...@cloud85.net <mailto:rowl...@cloud85.net>> wrote:
>>
>>     I have a trivial bash script named test.sh which has been
>>     marked as executable.
>>     Its contents are:
>>
>>     #!/bin/bash
>>     cat /etc/debian_version
>>     mount | grep 'on / '
>>
>>     In a terminal I type:
>>
>>     test.sh
>>
>>     The response is:
>>     bash: test.sh: command not found
>>
>>     I'm using Squeeze with Gnome2 as DE.
>>     What's wrong?
>>     TIA
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> Courtier "Sire I have bad news!"
>> King "Yes, what is it?"
>> Courtier "The peasants are revolting."
>> King "Yes they always have been. Now what is the bad news?"
>>
>
>


-- 
Courtier "Sire I have bad news!"
King "Yes, what is it?"
Courtier "The peasants are revolting."
King "Yes they always have been. Now what is the bad news?"

Reply via email to