Execution of script on different server
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Execution of script on different server




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Execution of script on different server  
kr.badrinath@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-05-05 01:50 AM

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






[ Post a follow-up to this message ]



    Re: Execution of script on different server  
Helmut Kreft


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-08-05 11:29 PM

On 4 Nov 2005 16:37:21 -0800, kr.badrinath@gmail.com wrote:
>
> 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.
>

Strange... I suggest the following solution:

titan:~$ cat try.sh
printf "Hello world on "
hostname
titan:~$ ssh kreft@think /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)





[ Post a follow-up to this message ]



    Re: Execution of script on different server  
kr.badrinath@gmail.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-08-05 11:29 PM

Thanks Helmut..

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

Thanks,
BADri






[ Post a follow-up to this message ]



    Re: Execution of script on different server  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-08-05 11:29 PM

On 6 Nov 2005 19:52:36 -0800, kr.badrinath@gmail.com
<kr.badrinath@gmail.com> wrote:
> Thanks Helmut..
>
> Is it possible to pass the password with in the script.
> Instead of typing at prompt?
>
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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register