Re: run script on ssh server after scp



amoroder wrote:

I would like to copy a file to a server via scp an then, when the
filecopy has completed let start a script on the server side. This
script sould not be started by the client, but automatically by the
sshd.

When the only tool you have is a hammer, every problem looks like a
nail. I think you have the hammer approach. It is time to step back
and look at your tool box and chose a different one.

You have a source machine and a destination machine. On your source
machine you wish to copy a file to the destination machine. Then you
want a script to run on the desination machine. Is that correct?

Set up ssh-keygen so you do not need a password. Right a script on the
source machine that does the scp and then runs the script with ssh.
Nice and easy.
.



Relevant Pages

  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Regarding a selection for mobile code/scripting language
    ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
    (Vuln-Dev)
  • batch job using scp
    ... private keys on each side and have copied the public (via scp) to the ... Each server is also in the other server's ... When trying to run the script in verbose batch mode I see the ...
    (comp.security.ssh)