i have this line of code on my script
#!/bin/sh
#enable the environment variable thru profile
. .profile
when i run the script it was unable to find the .profile
sh ChgPwd.sh
ChgPwd.sh: line 4: .: .profile: file not found
the file .profile exists
ls -altr .profile
-rw-r--r-- 1 _wtolentino domain users 700 Jan 11 08:40 .profile
at the command line i can call it
. .profile
our OS version is:
Linux 2.6.32-696.10.1.el6.x86_64 GNU/Linux
please help thank you.