To invoke a script on a remote machine


 
Thread Tools Search this Thread
Operating Systems Solaris To invoke a script on a remote machine
# 1  
Old 10-08-2008
To invoke a script on a remote machine

Hi,

I am trying the following-

1. ftp a file from machine1 to machine2.
2. Once the ftp is done, from machine1 invoke a shell script on machine2.

Could anyone please help me on this?
# 2  
Old 10-08-2008
Use ssh with keys. Plenty of examples in the forum if you do a search.
# 3  
Old 10-08-2008
The machine1 is a windows machine. I am unable to use ssh from widows
# 4  
Old 10-08-2008
Then you will have to enable ftp in your unix machine and no firewall between your 2 systems. If ok, you will be able to ftp from windows to unix, then execute the script as you wished.. if you were to google on that, there are examples for you Smilie
# 5  
Old 10-08-2008
PHP

Quote:
Originally Posted by sam_roy
The machine1 is a windows machine. I am unable to use ssh from widows
Not true. Download and install openssh for Windows, and you can use command line tools. Anyway, this is a Windows question, not a UNIX question.
# 6  
Old 10-08-2008
Quote:
Originally Posted by otheus
Not true. Download and install openssh for Windows, and you can use command line tools. Anyway, this is a Windows question, not a UNIX question.
Otheus, OP's initial post was to "ftp".. then he switched saying ssh.. Not sure how he wants it to be done. like you said, both way works..Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Keep a script on remote machine running (nohup?)

Hi, I'm using expect to ssh into remote machine (i know its not the best practice), and run script "script.sh". This "script.sh" checks whether an other process (some another script) is running and if not, it runs it as some other user. #!/bin/bash /usr/bin/expect << EOD set... (5 Replies)
Discussion started by: oseri
5 Replies

2. Shell Programming and Scripting

Execute shell script on remote machine

I want to execute a shell script(set of commands) on remote machine and that script takes input from text file(local machine). Please refer below: ssh user@hostname 'bash -s'< ./test.sh file.txt But i got the error file.txt doesn't exist. Can anyone help me on this. Content of test.sh: ... (2 Replies)
Discussion started by: manishtri88
2 Replies

3. UNIX for Dummies Questions & Answers

Execute shell script in remote machine

Hi All, We have 2 servers A and B. B is having a sctipt called b.sh in path /home/dev/scripts. Now my requirement is i want to execute b.sh from server A. Kindly help me. (3 Replies)
Discussion started by: Girish19
3 Replies

4. UNIX for Advanced & Expert Users

Unable to run the script on remote machine Using Expect script

Not able to execute the file in remote host using except utility I am automating the SFTP keys setp process: So i created the expect script for controlling the output of shell below is my main code: Code: #!/usr/bin/expect set fd set password close $fd set df set app close $df... (1 Reply)
Discussion started by: Manoj Bajpai
1 Replies

5. UNIX for Advanced & Expert Users

Script running on remote machine - How ??

Hi All, This was an interview question " There is a clean-up shell-script in one UNIX machine and it is connected to 100 other UNIX machines. Howe can we run the script on all the 100 machines without ftping/copying the script to target machines ? I was unable to answer, please answer if... (5 Replies)
Discussion started by: coolbhai
5 Replies

6. Shell Programming and Scripting

running script in background on remote machine

Hi there I have a script which is running a remote command on hundreds of boxes, it takes around 5 minutes to return an output from this command and because i am running this all from a central box, it goes off to each box in my for loop sequentially meaning that my script will wait for output... (5 Replies)
Discussion started by: hcclnoodles
5 Replies

7. UNIX for Advanced & Expert Users

Running script on remote machine

if i have a script in my system which i need to run on remote system using ssh, how shall i do it? One easy way to to first scp it to remote machine and then run it on remote machine using ssh. Is there any one step way to do it. Preferably one in which i should give password only once (3 Replies)
Discussion started by: vickylife
3 Replies

8. AIX

How can invoke applications on Windows machine from AIX server

Hi folks, Before I start explaning my problem let me tell you I am new to Unix environment. I am working on a application. It was developed in java (on Windows machine). But application for production will be deployed on AIX machine. One of my requirement is I need to invoke QTP scripts and... (3 Replies)
Discussion started by: sachinrt
3 Replies

9. Shell Programming and Scripting

Checking the status of the script on remote machine

Hi! I have a script, which calls another script on a remote machine using ssh. I need to check if the remote running script is succesful. If it is succesful I need to continue the for loop (run it on another machine) or break the loop. Please let me know if anyone has an idea on checking the... (3 Replies)
Discussion started by: nua7
3 Replies

10. Shell Programming and Scripting

how to execute a script on remote machine

hi unix guru's i am new to unix shell programming. i found a trouble in executing a script(bali.ksh) which is available on serverA with username xyza, this script contains sqlplus command to retrive the data from the database available on other serverC. Now i need to run the above script... (4 Replies)
Discussion started by: balireddy_77
4 Replies
Login or Register to Ask a Question