[Fwd: [newbie] invoking bash scripts]

2001-04-16 Thread Dean Steichen
"David E.Fox" Here is the bash script I am having problems with...It was copied from the cdrom for "Linux Shells by Example". (The lines between the strings of .. are the script in question.) #!/bin/bash # Scriptname: n

Re: [newbie] invoking bash scripts

2001-04-16 Thread David E . Fox
On Saturday 14 April 2001 18:28, you wrote: > I tried ./scriptname and bash reports "No such file or > directory". I can ls and it shows scriptname* which should > indicate that it is executable and in the current directory. Careful here. Scripts can be confused in the sense that it'll report 'n

Re: [newbie] invoking bash scripts

2001-04-14 Thread Dean Steichen
I tried ./scriptname and bash reports "No such file or directory". I can ls and it shows scriptname* which should indicate that it is executable and in the current directory. btw: I bought the book "LINUX Shells by Example" by Ellie Quigley and have been trying to run some of the scripts from the

Re: [newbie] invoking bash scripts

2001-04-14 Thread Keith Christian
Hi Dean, Likely your system is set up (properly so) without the current directory in the path. To invoke a shell script named, say, foo.sh, type this: ./foo.sh (Notice the leading dot-slash) and it should run. This indicates that the script is in the current directory: dot represents the c

[newbie] invoking bash scripts

2001-04-14 Thread Dean Steichen
Is there some option I need to set to invoke a bash script? I have created a script with the #!/bin/bash as the first line and have chmod +x scriptname to make it executable but it will not execute unless I issue the "bash scriptname" command (preceed the scriptname with the command bash). Is thi