Hi guys,
I am using a script that run ftp and transfer file from my source server to the destination server.
Since i have transferred my files to the destination server, now i want to run a script at the destination server.
Could you please help me regarding how to run a script in a ftp session.??
What commands should we use.
Thanks in advance..!!!
vbe
2
You should do it the other way round...
In your script you should have your ftp, then use a remote shell to execute the script remotely
Could you please help me with the same,that how it needs to be done..!!!
once i am in the ftp session and i am at my destination, how to run the other script that i have placed at the destination location.
I need the command to do that and i am not getting it..!!!
vbe
4
You can't because you need a true shell...not ftp...
Is there any other alternative..??
vbe
6
What is in my first post...
vbe
7
In your script, you would need:
- a first part that would be a here-document containing your ftp session
- a second part which would be the invocation of a remote shell to run your script on distant server
methyl
8
If you have a username and password on the remote system, are you able to just "telnet" to the remote server and login normally?