Results 1 to 9 of 9
Threaded View
-
27th May 2010, 03:10 PM #1OPMember
[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=$(($2 * 1024))
fi
file=$1
rarfile=${file%.*}_your-site.com.${file##*.}.rar
rar a -m0 -v"$size"k $rarfile $1
echo $rarfile >> rarNupload.log
if [ $2 ]; then
part=1
while [ $part -le 10 ]
do
if [ -f ${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 -T ${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
http://www.besthostingforums.com/showthread.php?t=25036
http://www.besthostingforums.com/showthread.php?t=32893
so a special thanks to desiboy & AvekSnell 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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
turbobit.net delete all my files
By androtr in forum File Host DiscussionReplies: 23Last Post: 25th Jan 2012, 01:57 AM -
Can't delete files in cpanel
By newuploader in forum Server ManagementReplies: 10Last Post: 21st Oct 2011, 01:03 AM -
How to really delete files ?
By Cojba in forum Technical Help Desk SupportReplies: 14Last Post: 9th Feb 2011, 06:27 PM -
When I should delete my old files?
By torrenter31 in forum File Host DiscussionReplies: 3Last Post: 13th Jan 2011, 10:12 AM -
[linux]Rar files, upload to RS,Hotfile,fileserve,sharingmatrix then delete the files
By jpavsex in forum Tutorials and GuidesReplies: 10Last Post: 13th Jul 2010, 04:49 PM
themaCreator - create posts from...
Version 3.52 released. Open older version (or...