The leading slash is a problem because drive2: is NOT a directory. It is another drive. above root.

Not sure how else to say it, but the root or / (on drive1:) is where I start, but I need to change drives so that I can see the other filesystem that starts at /.

I guess you should think dos/windows vs linux/unix... c: and d: are how it appears... and cd d: should take me to the d: drive. When I issue that command lftp inserts the / so that the command sent is cd /d: which is looking for a directory called d: that doesnt exist....

I am rambling, but not sure how to make it clear what I am running into as it appears to be a rare circumstance...

Thanks again - it's all appreciated. (Also, I did try the cd "drive2:" - it still adds the leading / )

Matt

On Feb 24, 2010 11:59pm, Kyle Thurow <[email protected]> wrote:
The leading slash really shouldn't be a problem. When you first

connect to the ftp server, you are in the root directory (aka /).

When you try to cd into a new directory from root, the slash is

implicit, so "cd drive2:" and "cd /drive2:" are actually the same

thing, and both should work.



After testing, I now see that lftp literally parses the \ character,

so that isn't the proper way to escape. You didn't mention if you

tried this (which I suggested in my last message):



lftp:/> cd "drive2:"



In this case, keep the quotes. The above command is really the only

other suggestion I have. If this doesn't work I can only recommend

changing the name of drive2: by removing the trailing ':' character.



- Kyle



On Wed, Feb 24, 2010 at 10:22 PM, [email protected]> wrote:

> Sorry for the misunderstanding - not sure how the commands are interpreted,

> so messed that up pretty badly.

>

> lftp ad...@hostname:/> cd drive2\:

> cd: Access failed: 550 '/drive2\:': Not a directory or not accessible.

>

> see, the issue doesnt appear to be the : but the leading /

>

> You got the point with the file structure I think... There are 2 separate

> volumes. / of drive1: has a set of files and / of drive2: has a completely

> different set of files...

>

> the standard ftp command line client in centos5 or win xp lets me cd drive2:

> and I see / of drive2: while if I cd drive1: then I see / of drive1...

>

> Hope that helps?

>

> Thanks,

> Matt

>

> On Feb 24, 2010 9:53pm, Kyle Thurow [email protected]> wrote:

>> None of those commands you typed into lftp were what I intended. I

>>

>> only put the quotes so you could distinguish what the command was.

>>

>> They way you tried to use it was completely self-defeating. As you can

>>

>> see, putting the whole thing in quotes results in an unknown command

>>

>> error. Additionally, putting "drive2\:" in quotes defeats the whole

>>

>> purpose! The quotes make the '\' character literal, so it tries to

>>

>> enter a directory literally named drive2\:

>>

>> My intent was for you to use "cd drive2\:" (but remove the quotes when

>>

>> you type this into lftp! Also cd "drive2:" might work (keep these

>>

>> quotes))

>>

>>

>>

>> Also, I don't follow your "server structure" at all. are drive1 and

>>

>> drive2 directories withing root? The way you showed, they seem to be

>>

>> independent of the filesystem! Can you maybe connect to the ftp

>>

>> server, and show the output of 'ls' ?

>>

>>

>>

>> - Kyle

>>

>>

>>

>> On Wed, Feb 24, 2010 at 1:07 PM, [email protected]> wrote:

>>

>> > Thanks for the suggestions - no go so far.

>>

>> >

>>

>> > Pretty sure the issue is the preceding '/'.

>>

>> >

>>

>> > The server has the following structure:

>>

>> >

>>

>> > drive1:

>>

>> > /

>>

>> > /dir1

>>

>> > /dir2

>>

>> > drive2:

>>

>> > /

>>

>> > /dir1

>>

>> > /dir2

>>

>> >

>>

>> > The FTP server defaults to drive1: and if the cd command includes the

>>

>> > preceding '/' then it is assumed that the "drive2" text is a directory

>>

>> > (which doesnt exist).

>>

>> >

>>

>> > Some samples:

>>

>> > FROM FTP:

>>

>> > ftp> cd drive2

>>

>> > 550 'drive2': Not a directory or not accessible.

>>

>> > ftp> cd drive2:

>>

>> > 250 CWD command - successful.

>>

>> >

>>

>> > FROM LFTP:

>>

>> > lftp ad...@hostname:/> cd drive2:

>>

>> > cd: Access failed: 550 '/drive2:': Not a directory or not accessible.

>>

>> > lftp ad...@hostname:/> "cd drive2\:"

>>

>> > Unknown command `cd drive2\:'.

>>

>> > lftp ad...@hostnamen:/> cd "drive2\:"

>>

>> > cd: Access failed: 550 '/drive2\:': Not a directory or not accessible.

>>

>> > lftp ad...@hostname:/> cd 'drive2\:'

>>

>> > cd: Access failed: 550 '/drive2\:': Not a directory or not accessible.

>>

>> > lftp ad...@hostname:/> cd drive2

>>

>> > cd: Access failed: 550 '/drive2': Not a directory or not accessible.

>>

>> >

>>

>> > Thanks for the help. I just hope that I am not the only one to have run

>>

>> > across a system like this before.

>>

>> >

>>

>> > Matt

>>

>> >

>>

>> >

>>

>> > On Feb 24, 2010 12:28pm, Bill Dorsey [email protected]> wrote:

>>

>> >> I was thinking the same thing. I never use a : when on ftp sites.

>>

>> >>

>>

>> >> Also, there may be a security issue. I get that a lot when my creds are

>>

>> >> lacking.

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >> On Wed, Feb 24, 2010 at 12:04 PM, Kyle Thurow [email protected]>

>> >> wrote:

>>

>> >>

>>

>> >> This is just speculation. I haven't done any testing to verify, but

>>

>> >>

>>

>> >> lftp may be having a problem with the ':' character in that directory

>>

>> >>

>>

>> >> name. If possible, I would recommend naming it something else.

>>

>> >>

>>

>> >> Alternatively, you may be able to escape the character. you could try

>>

>> >>

>>

>> >> "cd drive2\:"

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >> - Kyle

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >> On Wed, Feb 24, 2010 at 10:51 AM, [email protected]> wrote:

>>

>> >>

>>

>> >> > Hi all - I hope this is not an rtfm problem - I have searched every

>> >> > way

>>

>> >> > I

>>

>> >>

>>

>> >> > know how for the answer...

>>

>> >>

>>

>> >> >

>>

>> >>

>>

>> >> > Am working with and embedded device that has 2 volumes served by FTP.

>>

>> >>

>>

>> >> >

>>

>> >>

>>

>> >> > With linux command line ftp client, I can cd to the second volume -

>> >> > "cd

>>

>> >>

>>

>> >> > drive2:"

>>

>> >>

>>

>> >> >

>>

>> >>

>>

>> >> > When I do the same with lftp, I get the following error:

>>

>> >>

>>

>> >> > cd: Access failed: 550 '/drive2:': Not a directory or not accessible.

>>

>> >>

>>

>> >> >

>>

>> >>

>>

>> >> > Which is right, because it is adding a leading '/' to the volume as

>> >> > to

>>

>> >> > make

>>

>> >>

>>

>> >> > it rooted at /.. Is there a way to change volumes or cd with out the

>>

>> >> > leading

>>

>> >>

>>

>> >> > '/'?

>>

>> >>

>>

>> >> >

>>

>> >>

>>

>> >> > Thanks,

>>

>> >>

>>

>> >> > Matt

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >>

>>

>> >>

>>

Reply via email to