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

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.