Professional Web Applications Themes

Execution of script on different server - Linux / Unix Administration

I have strange scenario could you please give suggestion to me? Scenario ======= I have script called try.sh on development server and I wanted to run that script on the production server with out placing that file on the prod server. ie . I have to trigger the script from DEV server which inturn should trigger it on PROD server. Only constraint is I should not place the script on PROD server. FYI - I have login credentials of PROD and DEV . Please let me know how can I execute the script. Thanks, Badri...

  1. #1

    Default Execution of script on different server

    I have strange scenario could you please give suggestion to me?

    Scenario
    =======

    I have script called try.sh on development server and I wanted to run
    that script on the production server with out placing that file on the
    prod server.

    ie . I have to trigger the script from DEV server which inturn should
    trigger it on PROD server.
    Only constraint is I should not place the script on PROD server.

    FYI - I have login credentials of PROD and DEV .

    Please let me know how can I execute the script.

    Thanks,
    Badri

    kr.badrinath@gmail.com Guest

  2. #2

    Default Re: Execution of script on different server

    On 4 Nov 2005 16:37:21 -0800, com wrote: 

    Strange... I suggest the following solution:

    titan:~$ cat try.sh
    printf "Hello world on "
    hostname
    titan:~$ ssh kreftthink /bin/sh < try.sh
    Password:
    Hello world on think
    titan:~$

    Helmut

    --
    Almost everything in life is easier to get into than out of.
    (Agnes' Law)
    Helmut Guest

  3. #3

    Default Re: Execution of script on different server

    Thanks Helmut..

    Is it possible to pass the password with in the script.
    Instead of typing at prompt?

    Thanks,
    BADri

    kr.badrinath@gmail.com Guest

  4. #4

    Default Re: Execution of script on different server

    On 6 Nov 2005 19:52:36 -0800, com
    <com> wrote: 
    If you use ssh, you should set up public and private keys so a password
    is not needed.

    --
    The decision doesn't have to be logical; it was unanimous.
    Bill Guest

Similar Threads

  1. Pausing the execution of a script
    By g_como in forum Macromedia Director Basics
    Replies: 2
    Last Post: June 2nd, 12:14 PM
  2. <img> tag ASP script execution
    By Mike Kanski in forum ASP
    Replies: 2
    Last Post: September 15th, 08:07 PM
  3. execution of script from button
    By Bharat in forum PERL Miscellaneous
    Replies: 3
    Last Post: September 11th, 06:05 PM
  4. [PHP] Script Execution Time
    By Chris W. Parker in forum PHP Development
    Replies: 2
    Last Post: July 29th, 10:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139