Re: [Boa Constr] SSHExplorer
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2002-10-28 04:32:59
|
Hi Yuppie, Yuppie wrote: > > Hi Riaan! > > Many thanks for your reply! No problem, glad this might be useful to more than 1 person :) > The '~'-problem: > ================ Interesting that unquoted paths are locally expanded, I would never have guessed, but I suppose it makes sense. > [user@windowshost]: ssh -l <user> <linuxhost> 'ls -la ~/folder' > works This is the one I'm going to use, thanks for the testing! (after testing) Damn! This does not work for the source forge server. This variation does work (I'm now using it): [user@windowshost]: ssh -l <user> <linuxhost> ls -la '~/folder' I've added quoting to all SSH commands that uses paths. > > I'll implement the current directory hack, that should work for both > > of us and also on Linux. > > +1 OK. > > > For you this change should be sufficient: > > > > def buildSCPStrs(self, source, dest): > > return 'scp %s %s'%(source, dest), 'scp %s %s'%(source, dest) > > Well. Actually that's the last thing I tried before writing to the > mailinglist. My comment above was under the assumption that your OpenSSH accepted windows paths. If it doesn't, then agreed, more than just the above changes are needed. > > The ':'-problem: > ================ > scp syntax uses ':' to seperate <host> from <file>. c:\filename is > interpreted as host = "c" and file = "\filename". Understood, although the @ could be used to distinguish between local and remote parts. pscp handles local windows paths correctly. > Any hints where to change the local path? When I implemement the proposed "current directory hack" there will be no more local paths only a filename ;) ... Ok, all discussed changes are implemented, tested and checked into CVS. Please also test and drop me a note if it doesn't work as expected. I have *many* other local changes to other parts of Boa, but have not had time for a mega checkin, hope to get to it soon! Thanks for the feedback, Riaan. |