Results 1 to 8 of 8
-
9th Jan 2012, 10:32 AM #1OPMember
mass upload bash script (good for Megaupload)
It's not much, but I'm sure it will help someone. I searched if it exists and didn't find, so.
If u wanna upload via FTP all your files in one folder do this:
1. in text editor write code, use ftp server of your choice
Code:#!/bin/bash ftp -inv << FTP open ftp.eu.filesonic.com user USERNAME PASSWORD lcd /YOUR/FOLDER/WITH/FILES mput *.zip bye FTP
3. run likeCode:bash yourfile.sh
Code:./yourfile.sh
It's easy to use.
here's the script for mass upload to MU:
Code:#!/bin/bash for file in /path/to/yourfiles/*.zip; do plowup --auth=username:password megaupload "${file}"; done;
you can change "zip" to whatever extension you're using or just put "*" for every file in folder. Just save it as .sh and run.
Of course you can put all in one file and add more FTP or plowup to upload to more filehosts.
I was doing this for rapidshare, megaupload, fileserve, filejungle, filesonic. Just run and relax.Mutikasa Reviewed by Mutikasa on . mass upload bash script (good for Megaupload) It's not much, but I'm sure it will help someone. I searched if it exists and didn't find, so. If u wanna upload via FTP all your files in one folder do this: 1. in text editor write code, use ftp server of your choice #!/bin/bash ftp -inv << FTP open ftp.eu.filesonic.com user USERNAME PASSWORD lcd /YOUR/FOLDER/WITH/FILES Rating: 5
-
9th Jan 2012, 03:51 PM #2Member
Very nice share! thanks!
-
9th Jan 2012, 03:52 PM #3MemberWebsite's:
KWWHunction.com Google.com
-
9th Jan 2012, 04:03 PM #4Member
I think this is faster and more resource friendly than sborg or rapidleech. Nice combination of bash and perl
-
12th Jan 2012, 10:13 PM #5MemberWebsite's:
SherwoodForum.netCan this be altered to upload multiple files at once?
-
12th Jan 2012, 11:10 PM #6OPMember
You cannot upload at the same time with one process, but
you can try to run process in the background then start another process.
For example, if u have one script for folder A and u name it A.sh, and another for folder B with name B.sh you can upload that two folders at the same time like this:
& stands "to run in background"
Code:./A.sh &
Code:./B.sh
Still, you must not close the terminal. If u want to close the terminal use "nohup" command like this:
Code:nohup ./A.sh &
-
13th Jan 2012, 04:47 AM #7MemberWebsite's:
SherwoodForum.netI'm not sure my question was clear. This uploads all the files from a folder one file at a time, is there a way to edit the script to have it upload all the files at once?
-
13th Jan 2012, 12:54 PM #8OPMember
I understood you, but I'm not sure what is your knowledge about this.
You will have to incorporate the commands I stated above.
Make separate script for every file you have in folder, then run all the scripts in background.
Like this:
Code:#!/bin/bash ## this will create script for every file x=1 for file in /path/to/your/folder/*.zip do cat > ${x}.sh << EOF ftp -inv << FTP open ftp.eu.filesonic.com user USERNAME PASSWORD put "${file}" "${file}" bye FTP EOF let x=x+1 done ## this will run all scripts in the background for ((i=1; i<=${x}; i++)) do ./${i}.sh & done
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
bash script mass download from links in text file
By Mutikasa in forum Tutorials and GuidesReplies: 1Last Post: 9th May 2012, 04:20 PM -
Megaupload Remote upload script?
By illetyus2 in forum Technical Help Desk SupportReplies: 0Last Post: 12th Dec 2010, 12:48 PM -
ssh/bash script
By t3od0r in forum Technical Help Desk SupportReplies: 0Last Post: 6th Oct 2010, 06:41 PM -
Looking for VPS - Good Upload / Download from Megaupload
By ttexta in forum Hosting DiscussionReplies: 11Last Post: 4th Oct 2010, 02:53 AM -
Need A Bash Script
By orbofdarkness in forum Technical Help Desk SupportReplies: 14Last Post: 8th Feb 2010, 08:02 PM
themaPoster - post to forums and...
Version 5.19 released. Open older version (or...