Networking Forums

Networking Forums > Computer Networking > Linux Networking > NETRC macro not xferring occasional file

Reply
Thread Tools Display Modes

NETRC macro not xferring occasional file

 
 
Matt
Guest
Posts: n/a

 
      12-28-2005, 07:06 PM
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cheap occasional broadband? Bob Wibble Broadband 13 07-28-2007 08:52 AM
XP Machine and occasional wireless network lag Marcel Home Networking 0 11-05-2004 05:49 PM
Ftp files filtered by modif date using macdef in .netrc Liza Linux Networking 4 04-19-2004 02:45 PM
.netrc file -syntax error? Doug Laidlaw Linux Networking 2 12-08-2003 11:12 AM
Re: .netrc Vilmos Soti Linux Networking 0 06-25-2003 04:19 AM



1 2 3 4 5 6 7 8 9 10 11