I'm trying to write a very basic shell script and then run it.
I'm using Linux 7.2 RH with bash shell. Can somemone tell me how do I
do that?
This is the only text in my update.sh (or update.bash) file
_________________________________
cd /cvs
cvs update -dP ./project/website
cp /cvs/project/website/html/*.*
/usr/local/httpd/htdocs/projectcenter/docs/
________________________________
but when I run it using this command
/cvs/update.bash
I get this error:
: command not found
update from cvs
: command not found
: No such file or directory
: no such repository
cp: copying multiple files, but last argument
`/usr/local/httpd/htdocs/projectcenter/docs/\r' is not a directory
Try `cp --help' for more information.
: command not found
done
: command not found
bash-2.05#
Is there something wrong with my scripts or the way I run it? I've
done a chmod 777 on that file too. Do I need to make that file
available on my path, and how do I do that?
Thanks.