Re: [CentOS] scp scripting question

2012-10-14 Thread Gordon Messmer
On 10/12/2012 07:20 PM, Les Mikesell wrote: How so? What's wrong with what behaves like a named pipe? That is, why does scp need to seek instead of just reading the contents? Whether it seeks or not is rather irrelevant to the question of whether or not it is unix-like behavior. seek()

[CentOS] scp scripting question

2012-10-12 Thread m . roth
So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes Does anyone have any ideas what the syntax in bash is? I've been playing with this for hours. My manager says that zsh treats the cat'd key as a file, while if you try it with

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 12:44 PM, m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes Does anyone have any ideas what the syntax in bash is? I've been playing with this for hours. My manager says that

Re: [CentOS] scp scripting question

2012-10-12 Thread Tony Schreiner
On Oct 12, 2012, at 1:44 PM, m.r...@5-cent.usmailto:m.r...@5-cent.us m.r...@5-cent.usmailto:m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes Does anyone have any ideas what the syntax in bash is? I've

Re: [CentOS] scp scripting question

2012-10-12 Thread m . roth
Tony Schreiner wrote: On Oct 12, 2012, at 1:44 PM, m.r...@5-cent.usmailto:m.r...@5-cent.us m.r...@5-cent.usmailto:m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes Does anyone have any ideas what

Re: [CentOS] scp scripting question

2012-10-12 Thread m . roth
Les Mikesell wrote: On Fri, Oct 12, 2012 at 12:44 PM, m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes Does anyone have any ideas what the syntax in bash is? I've been playing with this for hours.

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 2:48 PM, m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes I think you missed what I was asking, altogether. I want to do the same thing in bash I think you'll have to

Re: [CentOS] scp scripting question

2012-10-12 Thread m . roth
Les Mikesell wrote: On Fri, Oct 12, 2012 at 2:48 PM, m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes snip I think you'll have to drop the key in a tmp file yourself. Poking around with strace a

Re: [CentOS] scp scripting question

2012-10-12 Thread Nux!
On 12.10.2012 21:30, m.r...@5-cent.us wrote: Les Mikesell wrote: On Fri, Oct 12, 2012 at 2:48 PM, m.r...@5-cent.us wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx snip cat /etc/ks/ks_dsa) localfile server:/whereitgoes snip I think you'll have to drop the key in a

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 3:44 PM, Nux! n...@li.nux.ro wrote: Yep, exactly right. People in #openssh confirmed -i HAS to be a real path to a file. Not very unix-like behavior... -- Les Mikesell lesmikes...@gmail.com ___ CentOS mailing list

Re: [CentOS] scp scripting question

2012-10-12 Thread Gordon Messmer
On 10/12/2012 01:56 PM, Les Mikesell wrote: On Fri, Oct 12, 2012 at 3:44 PM, Nux! n...@li.nux.ro wrote: Yep, exactly right. People in #openssh confirmed -i HAS to be a real path to a file. Not very unix-like behavior... Yes, it is. The alternative is for -i to take a file or a key as an

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 9:02 PM, Gordon Messmer yiny...@eburg.com wrote: On 10/12/2012 01:56 PM, Les Mikesell wrote: On Fri, Oct 12, 2012 at 3:44 PM, Nux! n...@li.nux.ro wrote: Yep, exactly right. People in #openssh confirmed -i HAS to be a real path to a file. Not very unix-like