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
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?
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
Summary: How to write bourne shell script that will prompt the user for a number and which can be ended only by the user typing STOP. The script should ignore the interrupts from Control +C and Control +\ ...
Summary: any1 got any idea how to write a bourne shell script that will print a file and then email a user the result of the printing, including a list of the files that cant be sent to the printer. ...
Summary: Write a Bourne Shell script to: go through all HUMAN user password entries (you may assume that any user with a uid above 500 is a human user for this script) and ensure that they have the following...