At 20:44 -0400 7/13/07, Chris Pepper wrote:
>At 6:34 PM -0600 7/13/07, Doug McNutt wrote:
>>I can't seem to make this work in a worksheet session though it works fine 
>>when copy/pasted into a Terminal.app window.
>>
>>scp $WORK/Pictures/BaggageCardboard.JPG [EMAIL 
>>PROTECTED]:/usr/home/macn/ftp/bob/
>>

>       Does "ssh [EMAIL PROTECTED] ls" work from a Terminal window and a 
> Worksheet? If not, try adding -v to the command. Are you using an encrypted 
> or unencrypted private key? If private, "ssh-add -l" should show it. Does 
> your scp command work in Terminal?

That was the right pointer.  Thank you.

"ssh [EMAIL PROTECTED] ls"  does in fact work in both Terminal.app and with a 
worksheet. Yes, the original scp command works fine in Terminal. In BBEdit it 
hangs forever with ssh running. It takes a mouse-in-box and COMMAND-DOT to make 
it quit.

I tried changing parameters in $HOME/.ssh/config and discovered that I can't 
add a colon and a directory path to a HostName line. I guess that's not 
surprising. Both BBEdit and Terminal correctly process this:

ssh [EMAIL PROTECTED] "cd /usr/home/macn/ftp/bob/ ; ls"

I now suspect there is something special about the colon which can confuse 
BBEdit or whatever magic trickery goes on between BBEDit and its shell. It is, 
after all, a directory separator in HFS+. These lines:

set remote = "[EMAIL PROTECTED]:/usr/home/macn/ftp/bob/"
scp $WORK/Pictures/BaggageCardboard.JPG $remote

make the scp command operate as expected in the worksheet! And NO. It is not 
because my first try had a typo semicolon instead of a colon.

The only real difference is that the variable definition probably hides the 
colon until it gets to my tcsh shell. If someone from Bare Bones is listening 
I'd like to know if that's a known bug.

-- 

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.

-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to