try system( "rcp $file $host:/tmp/$file" ) and see if that helps.
In reply to RE: Failure with rcp by geektron in thread Failure with rcp by magnus