For fucks sake... someone write this script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mikeee
    Registered User
    • Jun 2002
    • 516

    #1

    For fucks sake... someone write this script

    Let's say I have an image http://mysite.com/image.jpg

    I want a script that will scan the image and make a copy of it somewhere else, like... http://MyOtherSite.com/scanned.jpg

    The script needs to scan the image twice daily, and replace the image it makes on the other site... since the original image will be changed twice daily.

    Lemme know if you can so I can give you contact info.

    Thanks
  • extreme
    Confirmed User
    • Oct 2002
    • 2120

    #2
    Uhm, maybe I dont get what you're asking after but how about just crontabing a
    "cd /www/myotherhost.com; rm -f image.jpg; wget http://mysite.com/image.jpg" on the box that hosts myothersite.com?

    Comment

    • RedShoe
      赤い靴 call me 202-456-1111
      • Feb 2001
      • 14831

      #3
      traffictrader perhaps? It's all template run. So basically you can set it up like this, (I think)

      http://mysite.com/image.jpg runs template a
      http://MyOtherSite.com/image.jpg runs template b

      They both run through traffic trader, and can be updated every 15 minutes if you wish, or everyday, every other day, once a week... It's up to you.

      Not so sure if it would scan. But you can set your file structure up to display "numbered images" and just have the templates run those numbers with each update. Traffic trader will automatically run those templates for you.

      You could basically set up a years worth of updates, turn on traffic trader, and walk away.

      SPECIALTY COSTUMES • PROPS • FX
      Superheroes • Monsters • Robots
      PM for details


      For any manufacturing needs. Adult or otherwise.

      aka BonsHigh on Insta
      Bonsai weed plants


      Comment

      • Mikeee
        Registered User
        • Jun 2002
        • 516

        #4
        Hmm, well see... sometimes the site that has the original image is down, and I want to display that image on a different site... so the whole purpose of the script is to NOT have a broken image on my site.

        Comment

        • RedShoe
          赤い靴 call me 202-456-1111
          • Feb 2001
          • 14831

          #5
          Originally posted by Mikeee
          Hmm, well see... sometimes the site that has the original image is down
          ?? Who's your host?

          Why would you think it's easier to run two seperate domains and copy image from server to another (automatically) than to get a more reliabe host is out of the question?

          SPECIALTY COSTUMES • PROPS • FX
          Superheroes • Monsters • Robots
          PM for details


          For any manufacturing needs. Adult or otherwise.

          aka BonsHigh on Insta
          Bonsai weed plants


          Comment

          • Mark
            Confirmed User
            • Jul 2001
            • 600

            #6
            to just grab the image from somewhere else and write it to your server this should do it with a cronjob..

            lynx -dump http://yourdomain.com/image.jpg > image.jpg

            Comment

            • andi_germany
              Confirmed User
              • Oct 2002
              • 768

              #7
              You can use symlinks to link to the picture. You can always do that and link the picture from anywhere on the server.

              or use this script:

              ----

              use File::Copy;

              $sour == "path/to/orig/image";
              $dest == "path/to/copy/image/to";

              copy("$sour", "$dest");


              -----
              SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

              Comment

              • Mikeee
                Registered User
                • Jun 2002
                • 516

                #8
                Originally posted by RedShoe


                ?? Who's your host?

                Why would you think it's easier to run two seperate domains and copy image from server to another (automatically) than to get a more reliabe host is out of the question?
                It was a sample link... the original image is not on my site, but its the image I have to use to link to that site. So the script has to read from external.

                Reliable host? Im good on hosting and I have yet to find anyone to handle my traffic at my cost, but we wont get into that.
                Last edited by Mikeee; 12-10-2002, 01:56 AM.

                Comment

                Working...