The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find match in two diff file - local srv and remote server amir07 Shell Programming and Scripting 0 03-07-2008 06:23 AM
Executing awk in a remote server using ssh karthikv Shell Programming and Scripting 2 10-25-2007 07:46 PM
Transfer file from local unix server to remote server indira Shell Programming and Scripting 2 05-03-2007 03:35 AM
Transfer file from local unix server to remote server indira HP-UX 2 05-02-2007 02:15 PM
FTP multiple files from remote server to local server berlin_germany Shell Programming and Scripting 2 12-19-2006 11:24 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-27-2006
Registered User
 

Join Date: Dec 2005
Posts: 32
executing a remote location script from local server

hi

i am having two servers one is local and remote(FTP)server.from local server i have to connect to remote server and execute a shell script

i want to run a shell script(remote location) from my local server

i am having some knowledge on ftp but i am not getting the result .please give a script for executing a rempte location script from local server

remote location script name: abcd.sh

thank you
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-28-2006
Registered User
 

Join Date: Dec 2005
Posts: 32
hi i tried with diffrent options

i got my output

my script is

#!/usr/bin/sh
ftp -v -n "$1" << !!!
user "$2" "$3"
!!!
cd $4
sh scriptname
exit


thank you
Reply With Quote
  #3 (permalink)  
Old 02-28-2006
Registered User
 

Join Date: Aug 2001
Posts: 179
you cannot use ftp to execute a script on remote machine.. you need rsh or rexec
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0