Solved

Getting function result from machine without direct access

Posted on 2015-01-11
4
206 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

707 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