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()

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 9:02 PM, Gordon Messmer wrote: > On 10/12/2012 01:56 PM, Les Mikesell wrote: >> On Fri, Oct 12, 2012 at 3:44 PM, Nux! 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

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! 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 argumen

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 3:44 PM, Nux! 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 CentOS@cento

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, wrote: > So, my manager, in zsh, can do the following: scp -i =(ssh -qnx cat /etc/ks/ks_dsa) localfile server:/whereitgoes > >> I think you'll have to drop the key in a tmp

Re: [CentOS] scp scripting question

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

Re: [CentOS] scp scripting question

2012-10-12 Thread Les Mikesell
On Fri, Oct 12, 2012 at 2:48 PM, wrote: >>> >> So, my manager, in zsh, can do the following: >> scp -i =(ssh -qnx 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 drop th

Re: [CentOS] scp scripting question

2012-10-12 Thread m . roth
Les Mikesell wrote: > On Fri, Oct 12, 2012 at 12:44 PM, wrote: >> So, my manager, in zsh, can do the following: >> scp -i =(ssh -qnx 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 mana

Re: [CentOS] scp scripting question

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

Re: [CentOS] scp scripting question

2012-10-12 Thread Tony Schreiner
On Oct 12, 2012, at 1:44 PM, mailto:m.r...@5-cent.us>> mailto:m.r...@5-cent.us>> wrote: So, my manager, in zsh, can do the following: scp -i =(ssh -qnx 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 12:44 PM, wrote: > So, my manager, in zsh, can do the following: > scp -i =(ssh -qnx 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 c

[CentOS] scp scripting question

2012-10-12 Thread m . roth
So, my manager, in zsh, can do the following: scp -i =(ssh -qnx 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 bash, r