Hi,
+-From: "AP Adam Patt (5094)" <[EMAIL PROTECTED]> --
|_Date: Wed, 12 Nov 2008 14:37:02 -0500 _______
|
|I am trying to transfer a file that has a space in it's name and I get
|scp: ambiguous target
...
|String command="scp -p -t \"" + rfile.replace(" ", "\\ ") + "\"";
|scp -p -t "/tmp/c3_upload/3119586_940584/assets/o/58\ shaking\ liquid\
|in\ a\ can\ 2.wav"
...
|and the problem happens in the checkAck which is directly from the
|example code. I have also tried ' to surround the filename in place of
|" and no luck there either.
|scp -p -t "/tmp/c3_upload/3119586_940584/assets/o/58\ shaking\ liquid\ in\
a\ can\ 2.wav"
You need to guess how it will be evaluated by the remote shell.
How about this?
String command="scp -p -t '"+rfile+"'";
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users