Subject: Re: Couple Questions...
To: None <spectrum@rlion.com>
From: Space Case <wormey@eskimo.com>
List: port-mac68k
Date: 03/23/1996 15:02:39
On Mar 23,  1:04pm, spectrum@rlion.com wrote:
>Hi, im trying to figure out how to segment an 8.5 meg file into smaller
>segments, ftp them, then reassemble them in NetBSD. ANy help is
>appreciated... my provider hangs up on my for some reason after about an
>hour connected so i cant finish the FTP...

What I have done is this:
  If the file is binary, `uuencode filename filename > filename.uu`,
  use "filename.uu" as "working.file", else use the original text
  file as "working.file".

  `wc working.file` to find out character count and line count.

  Figure out how many pieces you need to split working.file into, to
  get the size of segments you want to transfer, then divide the line
  count by that number.  Round the result up and call it "count"

  `split -count working.file out.file`.  This will give you out.file.aa,
  out.file.ab, out.file.ac, etc.

  Transfer the files.

  On the receiving end, `cat out.file.?? > working.file`, and if you had
  uuencoded a binary file, `uudecode working.file`.

  Then just clean up the bits, and you're done.

There may be an easier way, but this method has allowed me to transfer
files via mail, and should work for ftp stuff, too.

>Also, I'll be installing xwindows and need another partition for unix
>setup. I have a 100 meg partition and i will be adding a 60 meg
>partition. i *HAVE* two use two SCSI drives for this because i dont have
>a large enough contiguous drive to make one huge partition. Question,
>how do i find out how much space current directories take in unix? Also

`du -s dirname`  Be aware that some systems report the block count as
512-byte blocks, others as 1024-byte blocks.

>trying to find out the best way to install xwindows via this
>multi-partition method... Thanks

I had my xwindows stuff on /disk1, and did a symlink from /disk1/X11R6
to /usr/X11R6.  Now that I have a slightly bigger system disk, I don't
need to do that any more. :-)

>BTW my root partition has about 20 megs left on it

More than I have. ;-)

~Steve

-- 
#Steven R. Allen - wormey@eskimo.com      http://www.eskimo.com/~wormey/
#
#Faith is the quality that enables you to eat blackberry jam on a picnic
#without looking to see whether the seeds move.

Always borrow money from a pessimist; he doesn't expect to be paid
back.