How do I write and use a batch script for ftp in Mac OS X
Posted on 2008-11-09
From the terminal in Mac OS X (10.5), I want to carry out several FTP commands without having to wait for each sequential upload - i.e. I want some way of telling the FTP prompt to carry out a list of sequential commands.
1) append /Users/Desktop/MyVid1.flvab MyVid1.flvaa
2) append /Users/Desktop/MyVid1.flvac MyVid1.flvaa
3) append /Users/Desktop/MyVid1.flvad MyVid1.flvaa
4) append /Users/Desktop/MyVid1.flvae MyVid1.flvaa
Each file being uploaded (appended) is 100MB so ideally I want my ftp prompt to sequentially go through the above 4 steps overnight. This will save me waiting 30 minutes or so and then typing in the next 'append' statement.
Is there any way of putting a list of ftp commands in say a txt file and then getting the ftp prompt to execute these steps one by one?
Please help... I have over 3GB of film to upload in this manner and I'm hoping there's an easy way to do this (PS. I'm appending because the server times out on uploads above 100MB and I have no access to change this)
I'm waiting for your help.... please hurry!