Originally posted by: larlap
This script is driving me mad. I do not know why the last two commands in the script are not executing. It is running AIX 4.1.
The sleep or rm command do not execute!
Below the script is the output. The isload routine simply creates a flat file from an ISAM file. I wish to copy this flat file to a MS box.
Any ideas on what I might try?
HOST='192.168.21.5'
USER='user'
PASSWD='pwd'
file='apvend.ism'
echo u > tmpunl
echo ${file%.ism} >> tmpunl
echo ${file%.ism} >> tmpunl
echo >> tmpunl
/usr/synergy/dbl/bin/dbr /usr/synergy/dbl/isload < tmpunl
ftp -n -v $HOST <<-EOF
quote USER $USER
quote PASS $PASSWD
prompt
put ${file%.ism}.ddf
disconnect
quit
EOF;
sleep 5
rm ${file%.ism}.ddf
Partial script output is:
... normal termination of ISLOAD
+ ftp -n -v 192.168.2.5
+ 0<<
quote USER user
quote PASS pwd
prompt
put apvend.ddf
disconnect
quit
EOF;
sleep 5
rm apvend.ddf
Connected to 192.168.2.5.
220 Microsoft FTP Service
331 Password required
230 User logged in.
Interactive mode off.
200 PORT command successful.
125 Data connection already open; Transfer starting.
226 Transfer complete.
807651 bytes sent in 0.8325 seconds (947.4 Kbytes/s)
local: apvend.ddf remote: apvend.ddf
221 Goodbye.
lcm@ace6000:/dta/dte> ls -l apvend.ddf
-rw-r--r-- 1 lcm dte 806130 Aug 04 12:58 apvend.ddf
#AIX-Forum