Re: [gentoo-user] SCP bash script

2012-05-03 Thread Joshua Murphy
On Thu, May 3, 2012 at 7:44 AM, LiangYun Gong wrote: > Hi guys, > > I have a problem with scp bash script. I was trying to automate scp command > to copy files in and out, and I was trying to avoid key in the password > myself. > > So I attempt to use the "here string" feature of bash, it didn't w

Re: [gentoo-user] SCP bash script

2012-05-03 Thread LiangYun Gong
Right, I am just not sure that's the only way. Since I just want to copy one file in and one file out on many servers, this solution will double the work. It's just for servers auditing, you know. But thanks a lot anyway. Appreciate you help. :-) On Thu, May 3, 2012 at 9:20 PM, Adam Carter wrote

Re: [gentoo-user] SCP bash script

2012-05-03 Thread Adam Carter
On Thu, May 3, 2012 at 9:44 PM, LiangYun Gong wrote: > Hi guys, > > I have a problem with scp bash script. I was trying to automate scp command > to copy files in and out, and I was trying to avoid key in the password > myself. > > So I attempt to use the "here string" feature of bash, it didn't w

[gentoo-user] SCP bash script

2012-05-03 Thread LiangYun Gong
Hi guys, I have a problem with scp bash script. I was trying to automate scp command to copy files in and out, and I was trying to avoid key in the password myself. So I attempt to use the "here string" feature of bash, it didn't work with scp. And those server I am working with, they don't have