telemorgan
MIS
I am attempting to ftp transfer an oracle export file between two solaris servers. The script will run fine if called manually logged in under the oracle account but when put into the oracle crontab to run it has some problems. I can't seem to get the script to run from the cron. Can anyone shed some light on this?
HERE IS THE SCRIPT *********************************
#!/bin/sh
HOST='bugsy.domainame.com'
USER='oracle'
PASSWD='xxxxxxxx'
FILE='*.dmp.Z'
L_FOLDER1='/u06/exports/deltekcp'
#L_FOLDER2=
D_FOLDER='/u02/enterprise_exports'
#
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
lcd $L_FOLDER1
cd $D_FOLDER
bin
put $FILE
quit
END_SCRIPT
exit 0
HERE IS THE CRON ENTRY *********************************
#
#
30 01 * * * /morgan/bin/ftp_exports.scr > /morgan/working/ftp.out 2>&1
#
Thanks in advance
HERE IS THE SCRIPT *********************************
#!/bin/sh
HOST='bugsy.domainame.com'
USER='oracle'
PASSWD='xxxxxxxx'
FILE='*.dmp.Z'
L_FOLDER1='/u06/exports/deltekcp'
#L_FOLDER2=
D_FOLDER='/u02/enterprise_exports'
#
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
lcd $L_FOLDER1
cd $D_FOLDER
bin
put $FILE
quit
END_SCRIPT
exit 0
HERE IS THE CRON ENTRY *********************************
#
#
30 01 * * * /morgan/bin/ftp_exports.scr > /morgan/working/ftp.out 2>&1
#
Thanks in advance