?
Solved

Getting function result from machine without direct access

Posted on 2015-01-11
4
Medium Priority
?
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

771 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