View Single Post
Old 08-18-2002, 05:49 PM  
FierceHost
Confirmed User
 
Join Date: Apr 2002
Location: Indiana
Posts: 424
Russian Submitter Shell Script

You know how uploading 300 recip files via ftp for russian submitter can be a pain in the ass, and take about 5 minutes. Well doing it this way is a hell of alot easier. Just follow the steps below in ssh

1. su root
2. vi russiansubmitter.sh
3. enter the following in

# russian submitter download getter and untar/zipper ;)

echo "What is the tgp directory? Ex: /home/virtual/0op.org/var/www/html/lightspeed/1/"
read tgpdir
cd $tgpdir
echo "What is the location of the gallery tar.gz file? without http://tgp.russiansubmitter.com/ Ex: upload/135633/gallery135633.tar.gz"
read targzlocation
wget -O gal.tar.gz http://tgp.russiansubmitter.com/$targzlocation
tar xvfz gal.tar.gz
echo "All done"

4. save file
5. chmod 755 russiansubmitter.sh
6. ./russiansubmitter.sh
7. following instructions

Takes about 10 seconds everytime you do it now, just whenever you wanna untar another gallery, just login root, and type ./russiansubmitter.sh if the shell script file is located in your un home. This also works for the recip files (lifesaver)
__________________
250$ 1000GB / Mo - 2000mb space - 10 domains - .26 per gig overage
<font color="#00FF00">ICQ 132871574</font>
FierceHost is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote