How to trigger a script located on one domain from a machine on another domain

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dbphydb
    New Member
    • Apr 2010
    • 22

    How to trigger a script located on one domain from a machine on another domain

    Hi,
    I am basically from QA. What we testers do each day is
    1. Open a web browser. Type in http://11.12.13.27.808 0/cruisecontrol (since we are in a particular network, only we can access this)
    2. Check if the latest nightly build has been successful. If it is successful, deploy it on a test environment by clicking on 'Deploy this build' link.

    This deploying takes around 1-1.5 hours. During this time we cannot use our machines to work on anything else. Only after this deploying can we begin to test.

    Now, i wanted to know if its possible to do the below.
    When at home in the morning, i use something which will trigger a script (which will be on my machine at workplace). This script will inturn automatically deploy the build. I already have such a similar script. What i want to know is how is it possible to trigger this script from my home machine? Is it even possible?
    For e.g the external trigger will say "Deploy xxx branch on yyy test environment". So the script on my workplace machine will be invoked and it will automatically deploy it before i actually come to my desk.

    Please help. I am from QA and have no idea about all this.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Hmm. So to boil your question down, you want to remotely execute a script? I guess my first question is do you have remote access from your home PC to your work PC? RDP, VNC, SSH, anything like that? If you have any of that, you can just execute the script as if you were actually on your work computer.

    Comment

    • Glenton
      Recognized Expert Contributor
      • Nov 2008
      • 391

      #3
      Originally posted by dbphydb
      Hi,
      I am basically from QA. What we testers do each day is
      1. Open a web browser. Type in http://11.12.13.27.8080/cruisecontrol (since we are in a particular network, only we can access this)
      2. Check if the latest nightly build has been successful. If it is successful, deploy it on a test environment by clicking on 'Deploy this build' link.

      This deploying takes around 1-1.5 hours. During this time we cannot use our machines to work on anything else. Only after this deploying can we begin to test.

      Now, i wanted to know if its possible to do the below.
      When at home in the morning, i use something which will trigger a script (which will be on my machine at workplace). This script will inturn automatically deploy the build. I already have such a similar script. What i want to know is how is it possible to trigger this script from my home machine? Is it even possible?
      For e.g the external trigger will say "Deploy xxx branch on yyy test environment". So the script on my workplace machine will be invoked and it will automatically deploy it before i actually come to my desk.

      Please help. I am from QA and have no idea about all this.
      You on windoze, mac OS, or linux?

      Hamachi might be worth looking at - you can make it so that your computers are on a local network type thing.

      Or you could have a timed event, or write the script in such a way, that it checks every hour or whatever.

      Comment

      • dbphydb
        New Member
        • Apr 2010
        • 22

        #4
        Originally posted by insertAlias
        Hmm. So to boil your question down, you want to remotely execute a script? I guess my first question is do you have remote access from your home PC to your work PC? RDP, VNC, SSH, anything like that? If you have any of that, you can just execute the script as if you were actually on your work computer.
        @insertAlias - We do not want to give remote access as there are other confidential information. We just want something which will trigger the script on the machine located at workplace.

        @Glenton - Windows XP

        Comment

        • Glenton
          Recognized Expert Contributor
          • Nov 2008
          • 391

          #5
          I'm afraid I don't know how to trigger the event remotely. I'm sure it's possible, but there may be security concerns.

          XP has scheduled events though, which could be used to do this I think at a particular time. You could probably get your python script to send an email (although I haven't personally done this).

          Comment

          • dbphydb
            New Member
            • Apr 2010
            • 22

            #6
            Glenton, can you please elaborate on the email idea?

            Comment

            • Glenton
              Recognized Expert Contributor
              • Nov 2008
              • 391

              #7
              Originally posted by dbphydb
              Glenton, can you please elaborate on the email idea?
              I'd never even really thought about it before. I've used python to extract data from the web (just goes to a page, inputs some data from a list and then extracts data from the page). Very easy, especially with regular expressions. But when I read your post, I thought probably it's just as easy to get python to send an email.

              4 seconds of googling reveal:
              email module docs
              and
              email module examples

              That might get you going! Let us know how it goes.

              Comment

              Working...