How to split and upload a very large file and rejoin on the server using FTP in Mac OS X terminal
Posted on 2008-11-09
I have a 400MB flv (flash video file) that I want to upload to my webspace. If I tried to upload in one go, the server keeps timing out.
What I want to do is this:
1) Split the file into 100MB chunks and upload each of them
2) Then rejoin them on the server (from the Mac OS X terminal) so that the original flv file is restored
I have currently been trying this:
At the terminal:
split -b 100m "video.flv" video
(which runs fine)
... I them upload the 100MB files to the server and then from the terminal type....
cat videoab >> videoaa
cat videoaa >> videoaa
But my Terminal does this:
ftp> cat videoab >> videoaa
? Invalid command
How do I do this so that it works? (I'm not sure if the server is running unix)
I have heard of 'append' which seems to be a recognised command on the server - but how do I use this is this can be used to join all the files together.
I just need a way to split my video file, upload the segments, then rejoin the video file on the server.
Thanks - I'm waiting for your expertise!!