The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
fetchmail - log file size limitation DILEEP410 Shell Programming and Scripting 10 05-20-2008 08:41 AM
Size limitation in Tar command Manvar Khan Shell Programming and Scripting 4 07-20-2007 10:19 AM
File size limitation of unix sort command. cskumar Shell Programming and Scripting 7 10-07-2005 11:37 AM
HP-UX 11i - File Size Limitation And Number Of Folders Limitation sundeep_mohanty HP-UX 2 08-01-2005 08:58 PM
Size Limitation for a user directory felix_koo UNIX Desktop for Dummies Questions & Answers 1 04-15-2002 05:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2006
schoubal schoubal is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 1
File size limitation for rcp

Hi

I am trying to rcp a file from Solaris box to Linux.
When the file size is 2,205,255,047, the rcp fails with the message

Jan 10 01:11:53 hqsas167 rsh[22519]: [ID 427203 daemon.debug] pam_authenticate: error Authentication failed

However when I rcp a file with smaller size - 9,434,477 - the rcp completes with success.

Is there any way I can increase the maximum file size for rcp ? I read about a command line option rcp -R [size] but this does not work.

Any help would be appreciated - thank you !
  #2 (permalink)  
Old 01-13-2006
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
Are you sure you aren't running into a filesize problem on your target system? I'm not sure how to "increase the maximum file size for rcp", but have an idea for a workaround. You can use dd/gzip/split to break the file into smaller chunks, transfer them and then reconstruct the file on the other side. For example, if I wanted to transfer "somefile.tar":

1. Split the file into 50MB chunks

dd if=somefile.tar | gzip -c | split -b 50m - somefile.gz.

You'll end up with a bunch of files with the following pattern:

somefile.gz.aa
somefile.gz.ab
somefile.gz.ac
...

2. rcp the files
3. Reconstruct the file on the target system:

cat somefile.gz.* | gzip -dc | dd of=somefile.tar

Cheers,

Keith
  #3 (permalink)  
Old 01-14-2006
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
see if this one works ... (you don't have to use the "v" option if you don't want to) ...

(cd /local/dir; tar cvfp - bigfile) | rsh server1 "cd /remote/dir; tar xvfp -"
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0