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

Results 1 to 9 of 9

Hybrid View

Snell [linux]Rar files, upload to RS & HF... 27th May 2010, 03:10 PM
CyberHacK Great work! 27th May 2010, 03:13 PM
Daniel Nice tut! 27th May 2010, 03:14 PM
indahouse Thanks a lot for the script 27th May 2010, 03:44 PM
PBI NetWork Hey guys what are this some one... 27th May 2010, 03:58 PM
Snell forgot to add the usage: ... 27th May 2010, 03:59 PM
jpavsex /script.sh <file to be compressed>... 21st Jun 2010, 03:47 AM
Snell suppose in directory "test" there... 21st Jun 2010, 04:03 AM
jpavsex rar Done but error on upload ... 21st Jun 2010, 07:01 AM
Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member

    Default [linux]Rar files, upload to RS & HF then delete the files

    download RS api and put it into the same folder as the following script.
    http://images.rapidshare.com/software/rsapiresume.pl

    Copy this shell script into a file and save as anything.sh

    Changes to be made throughout the whole script
    your-site.com >> your hostname
    rsUserName >> your rapidshare username
    rsPassword >> your rapidshare password
    hfUserName >> your Hotfile username
    hfPassword >> your Hotfile password

    If you have premium rapidshare accounts, then change

    col >> prem

    PHP Code: 
    #!/bin/bash
    if [ $# -ne 2 ]
    then
      size
    =$((100 1024))
    else
      
    size=$(($1024))
    fi
      file
    =$1
      rarfile
    =${file%.*}_your-site.com.${file##*.}.rar
      
    rar a -m0 -v"$size"k $rarfile $1
      
    echo $rarfile >> rarNupload.log

    if [ $]; then
    part
    =1
    while [ $part -le 10 ]
    do
        if [ -
    ${file%.*}_your-site.com.${file##*.}.part$part.rar ];
        
    then
           
    echo "Uploading" ${file%.*}_your-site.com.${file##*.}.part$part.rar "to RS"
            
    perl rsapiresume.pl ${file%.*}_your-site.com.${file##*.}.part$part.rar col rsUserName rsPassword
           
    echo "Uploading" ${file%.*}_your-site.com.${file##*.}.part$part.rar "to HF"
            
    curl -${file%.*}_your-site.com.${file##*.}.part$part.rar ftp.hotfile.com --user hfUserName:hfpassword
            
    rm ${file%.*}_your-site.com.${file##*.}.part$part.rar
        
    else
           echo 
    "File $FILE does not exists"
        
    fi
    part
    =`expr $part + 1`
    done
    else
      echo 
    "Uploading" $rarfile "to RS"
        
    perl rsapiresume.pl $rarfile col rsUserName rsPassword
      
    echo "Uploading" $rarfile "to HF"
        
    curl -T $rarfile ftp.hotfile.com --user HFUsername:hfpassword
      rm $rarfile
    fi 
    This script is based on:
    http://www.besthostingforums.com/showthread.php?t=25036
    http://www.besthostingforums.com/showthread.php?t=32893

    so a special thanks to desiboy & Avek
    Snell Reviewed by Snell on . [linux]Rar files, upload to RS & HF then delete the files download RS api and put it into the same folder as the following script. http://images.rapidshare.com/software/rsapiresume.pl Copy this shell script into a file and save as anything.sh Changes to be made throughout the whole script your-site.com >> your hostname rsUserName >> your rapidshare username rsPassword >> your rapidshare password hfUserName >> your Hotfile username Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    FusionWarez.info SmokeHost.net Leechers.co
    Great work!

  4.     
    #3
    mmm mmm!
    Nice tut!
    HATERS GONNA probably bring up some valid points considering I am an ignorant little twat so far up my own ass that i blame my problems on everyone and if you criticize me you're automatically wrong.

  5.     
    #4
    Member
    Thanks a lot for the script

  6.     
    #5
    Member
    Website's:
    ZilleJulle.com PornBoxIt.com TheCavernForum.com TheFlix.net
    Hey guys what are this some one explain it a bit why use ect

  7.     
    #6
    Member
    forgot to add the usage:

    ./script.sh <file to be compressed> <Number of MB>

    <Number of MB> if you want to split the files into several parts.

    ~~~~~~

    increasing 10 to another number if you plan to use more than 10 parts

    PHP Code: 
    while [ $part -le 10 
    ~~~~


    @everyone who reply above
    have you tried it?

  8.     
    #7
    Member
    Website's:
    wautoposter.com
    /script.sh <file to be compressed> <Number of MB>

    file one by one or auto all folder file upload ?

  9.     
    #8
    Member
    suppose in directory "test" there are 20 sub-directories.

    When you put ./script.sh test 25

    it will compress the first directory (split it into 25mb), upload it and delete it then compress the other and so on.

  10.     
    #9
    Member
    Website's:
    wautoposter.com
    rar Done

    but error on upload

    Uploading M_M.rar to HF
    curl: Can't open 'M_M.rar'!
    curl: try 'curl --help' for more information

    i have installed curl if i upload use only command curl is working but if i use this script its not working
    curl -T "M_M.rar" ftp.hotfile.com --user usernameassword

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. turbobit.net delete all my files
    By androtr in forum File Host Discussion
    Replies: 23
    Last Post: 25th Jan 2012, 01:57 AM
  2. Can't delete files in cpanel
    By newuploader in forum Server Management
    Replies: 10
    Last Post: 21st Oct 2011, 01:03 AM
  3. How to really delete files ?
    By Cojba in forum Technical Help Desk Support
    Replies: 14
    Last Post: 9th Feb 2011, 06:27 PM
  4. When I should delete my old files?
    By torrenter31 in forum File Host Discussion
    Replies: 3
    Last Post: 13th Jan 2011, 10:12 AM
  5. Replies: 10
    Last Post: 13th Jul 2010, 04:49 PM

Tags for this Thread

BE SOCIAL