5

Execute remote script with local parameter value

view full story
linux-howto

http://unix.stackexchange.com – How can I automatize this task? 1) You are at A. 2) You ssh into B. 3) You run a script at B, that needs a parameter known at A. First, I thought perhaps I could send the value when I opened the connection with ssh. Then, probably simpler, between 1) and 2), scp the entire script to the same location at B (replacing the old one). But still, how do I execute the script at B? (That is, how to automatize that last step. Of course, I could run it manually after ssh.) Another thought, maybe discard of ssh altogether - I have a web page at B, so could the script somehow be invoked through an "und (HowTos)