Here are my two scripts, I want the first one to change to eupuk and then run the second one, but it doesn't seem to work.
kees.sh
su - eupuk -c /backup/ops/HSBC_file_transfer.sh
HSBC_file_transfer.sh
#!/bin/ksh
#ln -s /cer_eupuk/exe/ABS_LOGICALS ABS_LOGICALS
#. /cerillion_homes/euphony/users/tes01/.profile
# User Variables
FILEPATH=/cer_testgmt/work/par/hoca
FILENAME=HSBC_LO*
FINANCESCRIPT=/cer_testgmt/exe/par60105b_auto.sh
cd $FILEPATH
cp HSBC* /cer_testgmt/work/par/hoca/tmp
if [ -f $FILENAME ]
then
$FINANCESCRIPT
fi
I Get the following when I run it.
cp: /cer_testgmt/work/par/hoca/tmp/HSBC_HOCA05022007.txt: The file access permissions do not allow the specified action.
cp: /cer_testgmt/work/par/hoca/tmp/HSBC_HOCAEXP05022007.txt: The file access permissions do not allow the specified action.
cp: /cer_testgmt/work/par/hoca/tmp/HSBC_LOCKBOX05022007.txt: The file access permissions do not allow the specified action.
/cer_testgmt/exe/par60105b_auto.sh: 2007_02_13 08:15:19 : Starting
/cer_testgmt/exe/par60105b_auto.sh: 2007_02_13 08:15:19 : Logging to '/cer_testgmt/log/par60105b_auto_2515042_2433060.log'
/cer_testgmt/exe/par60105b_auto.sh: 2007_02_13 08:15:19 : ORACLE_SID = ''
/cer_testgmt/exe/par60105b_auto.sh: 2007_02_13 08:15:19 : ORACLE_LOGON = ''
/cer_testgmt/exe/par60105b_auto.sh: 2007_02_13 08:15:19 : ORACLE_HOME = ''
/cer_testgmt/exe/par60105b_auto.sh: 2007_02_13 08:15:19 : One or more Oracle environment variables not set
Can anyone shed any light please??