Activity Stream
48,167 MEMBERS
62343 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Member

    Default 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
    2. save as with .sh extension
    3. run like
    Code: 
    bash yourfile.sh
    or
    Code: 
    ./yourfile.sh
    Megaupload doesn't have FTP for free users, but there's tool called Plowshare. http://code.google.com/p/plowshare/
    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;
    for rapidshare change "megaupload" to "rapidshare" or "filesonic" or whatever it supports.
    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

  2.   Sponsored Links

  3.     
    #2
    Member
    Very nice share! thanks!

  4.     
    #3
    Member
    Website's:
    KWWHunction.com Google.com
    Thanks Mutikasa

  5.     
    #4
    Member
    I think this is faster and more resource friendly than sborg or rapidleech. Nice combination of bash and perl

  6.     
    #5
    Member
    Website's:
    SherwoodForum.net
    Can this be altered to upload multiple files at once?

  7.     
    #6
    Member
    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 &
    then run another
    Code: 
    ./B.sh
    you can put B.sh in background if u like.
    Still, you must not close the terminal. If u want to close the terminal use "nohup" command like this:
    Code: 
    nohup ./A.sh &
    although I never used this so don't know how it works. If it works good, if not, post here what it says.

  8.     
    #7
    Member
    Website's:
    SherwoodForum.net
    I'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?

  9.     
    #8
    Member
    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
    This is not tested, I wrote the code out of the head

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. bash script mass download from links in text file
    By Mutikasa in forum Tutorials and Guides
    Replies: 1
    Last Post: 9th May 2012, 04:20 PM
  2. Megaupload Remote upload script?
    By illetyus2 in forum Technical Help Desk Support
    Replies: 0
    Last Post: 12th Dec 2010, 12:48 PM
  3. ssh/bash script
    By t3od0r in forum Technical Help Desk Support
    Replies: 0
    Last Post: 6th Oct 2010, 06:41 PM
  4. Looking for VPS - Good Upload / Download from Megaupload
    By ttexta in forum Hosting Discussion
    Replies: 11
    Last Post: 4th Oct 2010, 02:53 AM
  5. Need A Bash Script
    By orbofdarkness in forum Technical Help Desk Support
    Replies: 14
    Last Post: 8th Feb 2010, 08:02 PM

Tags for this Thread

BE SOCIAL