[App_rpt-users] copying files between asterisk boxes under program control
Andrew Errington
a.errington at lancaster.ac.uk
Sun Apr 10 03:16:13 UTC 2011
On Sun, 10 Apr 2011 09:59:48 Ken wrote:
<snip>
> Can some guru help me out with a command line instruction that will copy a
> file from one box to another, in a standard ACID installation?
>
> The boxes are behind a common router and have different port numbers for
> SSH (of course). If any config files changes are required, please show what
> is needed.
Here's a tutorial that may help. The fourth point mentions how to specify a
port.
http://www.linuxtutorialblog.com/post/ssh-and-scp-howto-tips-tricks
> Secondly
>
> If possible, is there a way to direct the output of this transfer to
> "stdin" so that it can go directly into another program?
Yes, you use ssh for this (not scp). Here's how:
http://gnuru.org/article/1522/copying-with-scp-stdin
Have fun!
73,
Andrew
More information about the App_rpt-users
mailing list