Computing.Net > Forums > Linux > bourne shell script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

bourne shell script

Reply to Message Icon

Name: Teck
Date: April 14, 2003 at 17:13:05 Pacific
OS: Redhat Linux 8.0
CPU/Ram: 2.56GHZ/512MB
Comment:

here's a part of my script:
for argpath in `cat .profile`
do
ls $argpath
done

the .profile contain:
~/abe
~

and i get this error
ls: ~/abe/: No such file or directory
ls: ~: No such file or directory

i wonder why it won't works
i've got these 2 folder
any way to fix it?



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: April 14, 2003 at 18:46:53 Pacific
Reply:

Instead of ~, try $HOME and $HOME/abe instead of ~/abe

See if that makes a difference. Also be sure to include your shell declaration line so there is no doubt about which shell you are using to execute the script.


0

Response Number 2
Name: Dlonra
Date: April 15, 2003 at 06:15:00 Pacific
Reply:


is it "bourne", not bash?
if so,
eval ls $argpath


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


another bourne shell scri... DNS List



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: bourne shell script

Bourne Shell Script Problem www.computing.net/answers/linux/bourne-shell-script-problem/19777.html

another bourne shell script prob www.computing.net/answers/linux/another-bourne-shell-script-prob/19772.html

shell scripts www.computing.net/answers/linux/shell-scripts/19644.html