Consider I have two servers A and B.
And on the server B, I have a script test.sh
.
I want to execute this test.sh
from server A using FTP connection between them and also I want to pass a variable to the script of B but the variable is defined at A.
OR
If I SSH to server B from A, just after ssh command , i will execute the shell script at B. But if i want to add a variable (that i have defined while i was at A) as an argument to script of B. how would i do it ? any suggestion ?
Please suggest.
Thanks in advance.