Re: run script on ssh server after scp
- From: Doug Freyburger <dfreybur@xxxxxxxxx>
- Date: Wed, 15 Dec 2010 16:59:50 +0000 (UTC)
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.
.
- References:
- run script on ssh server after scp
- From: amoroder
- run script on ssh server after scp
- Prev by Date: Re: run script on ssh server after scp
- Next by Date: Intermittent disconnects
- Previous by thread: Re: run script on ssh server after scp
- Next by thread: Intermittent disconnects
- Index(es):
Relevant Pages
|