Hi everyone,
I am running Redhat Enterprise 3, and have a bash script that
sends files to an AS400 via FTP with .netrc controlling it.
The AS400 (OS V5R2) is mounted as a file system with
Samba 3.0.0-14.3E.
( The mounted AS400 file system is called /as400 )
-- Contents of /etc/fstab --
//qcsi400/qcsi400 /as400 smbfs
username=username,password=passwd,uid=0,gid=500,dm ask=777 0 0
-- END of file contents --
-- Contents of /root/.netrc --
machine AS400SERVER
login as400user
password as400password
macdef init
debug
prompt
cd as400library
lcd /as400/xferdirectory
mput d81*
bye
-- End of file contents --
There is one instance ( out of many ) where there were four files in
the /as400/xferdirectory. Of that, only two files were transferred to
the AS400. In
my script, I archive the files immediately after the FTP, and the
script archived
all four files.
When you do a 'ls', I find that it was the 2 middle files that were
skipped, in this
case. Why did the FTP/.netrc ignore half of the files?
There are no system errors in the /var/log/messages file, and the
/var/log/samba log files contain no errors. There were no processes
that would
lock those files. The AS400 did not register any errors either, so it
looks like
the two files were completely ignored by the '.netrc' script.
I am quite puzzled by this. Any thoughts where to look?
Thanks,
Matt
|