export ARBORDIR in your main script to wherever .arborpw is located.
What should i write can you please tell.
I have been in this issue for past 7 hours
I have no idea where that file might be. Maybe in /arbor?
ok what command should i write if its in arbor?
I already said.
export ARBORDIR
ARBORDIR=/arbor
But why? What if the file isn't there? Wouldn't it make sense for you to try to determine where it is, than just guessing, or assuming?
Yes ur right
i will ask the client.i will aks them..
This is my first time in unix.
---------- Post updated 23-07-13 at 10:44 AM ---------- Previous update was 22-07-13 at 09:41 PM ----------
Ok Scott.Please tell me which file to look on .How can i search it?
i ran this command
cd /arbor
it is successfull
Try:
find /arbor -name ".arborpw" 2> /dev/null
If you find it, sed ARBORDIR= to it, as shown previously. If not, ask the person who wrote the whole arbor nonsenses anyway where it is.
I just executed your command
find /arbor -name ".arborpw" 2> /dev/null
But it returned nothing.
One thing more .Can you tell me why is throwing error when i am scheduling it in the CRONTAB .It does not throw any error when i execute it manually?WHY?
Talk to whoever wrote bip.sh and ask them where the file is... or how it came to be.
Ok thanks I will ask for this file .arborpw and loction of this file.
Once i get this file i should
write this in my script
ARBORDIR=/arbor; export ARBORDIR
Am i right?
After including you code i am getting a new error
ERROR: $DB_PASS environment variable is not set
This script requires that the $DB_PASS environment variable be set.
cat: cannot open /arbor/.arborpw
---------- Post updated at 11:57 AM ---------- Previous update was at 11:04 AM ----------
Hi Scott i finally found the path of .arborpw
/arbor/integ_fx
Its content is only
more .arborpw
password_for_db
But still not working.
Can you tell what to do next?
Your concern isn't with the contents of the file... only its location.
export ARBORDIR
ARBORDIR=/arbor/integ_fx