For the life of me I can't figure out why I can't get any ftp script on this AIX 5.2 server to log commands . I can use this same script on any other AIX box and it works just fine. Any thoughts appreciated, I've tried all types of shells , bsh, ksh, csh sh and doesn't make any difference. Also tried different methods of input to log such as $server >> /tmp/ftp.log <<eof . As soon as I remove the logging the script runs ok and I can watch the listing of the files on the ftpserver by using sh -x scriptname
#!/bin/ksh
username=ftpxxxx
password=ftpxxxx
server=192.168.xxxx.xxx
cat /dev/null >/tmp/ftp.log
ftp -n $server <<eof >>/tmp/ftp.log
user $username $password
cd datadir
prompt
ls 2PF*.dat
ls 2RF*.dat
ls 2HS*.dat
bye
eof
#!/bin/ksh
username=ftpxxxx
password=ftpxxxx
server=192.168.xxxx.xxx
cat /dev/null >/tmp/ftp.log
ftp -n $server <<eof >>/tmp/ftp.log
user $username $password
cd datadir
prompt
ls 2PF*.dat
ls 2RF*.dat
ls 2HS*.dat
bye
eof