The expect script rftp that comes with redhat has a couple bugs. Here are the fixes (and I've only tried to get recursively, not put, so I'm not sure that that's bug free): On line 312, append a " to the end of the line. Insert this line between lines 205 & 206: if {$name=="." || $name==".."} return Once these changes have been made, the script will actually run (the first error is a parse error, so it doesn't run at all). rftp has been broken in at least 6.0 and 6.1, I've found the bug both places.
*** This bug has been marked as a duplicate of 7869 ***