Solved

Getting function result from machine without direct access

Posted on 2015-01-11
4
185 Views
Last Modified: 2015-01-11
I use to access everyday two unix machines, lets call it machine1 and machine2

I can access machine1 directly from my location, however if i want to access machine2, i first need to access machine1 and launch the next command ssh user@machine2

there is some script in that machine, script.ksh

I would like to execute that script in machine2 from machine1. how can i call it??
0
Comment
Question by:celtician
  • 2
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40543676
ssh user@machine script.ksh
0
 

Author Comment

by:celtician
ID: 40543681
Im being asked for password, can i send it as a parameter as well?
0
 
LVL 84

Expert Comment

by:ozo
ID: 40543686
No.
But you may be able to set an authentication key
0
 

Author Comment

by:celtician
ID: 40543689
Ok thanks, ill post that as another question. :)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now