Hi all, Please help me on my problem.
I want to take a value of variable which the variable is in other file.
variable.sh
wesly=1
wina=2
wekin=3
variabletaker.sh
source variable.sh
echo $wesly
when i run the variabletaker.sh
the error result is like here
error
source: variable.sh: file not found
Thank before..
i am working on /bin/bash
sea
2
Hi
Are the files in the same path?
If not, either put them in the same, or considider putting relative or absolute paths in front of the filenames.
Hope this helps
Try:-
source ./variable.sh
OR
source /full/path/to/variable.sh
Ensure permissions are set correctly for 'variable.sh'...
Thank you Mr Wisecracker.
Your suggest is worked.
When I work in sh shell I actually succes without
.\
before the file name.
:).