1753368 Members
4971 Online
108792 Solutions
New Discussion юеВ

Re: Bourne shell script

 
Avery_1
Advisor

Re: Bourne shell script

./sh.sh: Command not found.

Type this:chmod +x sh.sh says

chmod: getting attributes of `sh.sh' : No such file or directory
hey
Ramkumar Devanathan
Honored Contributor

Re: Bourne shell script

Sophia,

I guess you are a newbie to shell programming and also working in unix.

I suggest the following -
- learn to work in linux and how to use the shell - try to run small shell scripts - learn about absolute paths, relative paths, what './' and '../' say, refer to.
- read books on unix shell programming. you will find quite a few if you search in the www
- try out some easy programs which are given in the books above.
- all this will definitely help you to debug your problem.

the script i've given is to be copied onto your machine, in a directory say /tmp.

you may cd /tmp and then run as i'd suggested, or run it from your home directory as
$ /tmp/sh.sh

here are a few links to linux tutorials -

1. http://www.tldp.org/LDP/abs/html/

2. http://steve-parker.org/sh/sh.shtml

3. http://librenix.com/?inode=1774

you can search at google with the keywords

bash programming scripting tutorial

HTH.

- ramd.
HPE Software Rocks!
Avery_1
Advisor

Re: Bourne shell script

yes i'm a newbie...thanks for ur help....really...
hey