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

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

you cannot use ftp to execute a script on remote machine.. you need rsh or rexec