The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> FTP Help
|
ftp, showing all ascii codes
Discuss ftp, showing all ascii codes in the FTP Help forum on Dev Shed. ftp, showing all ascii codes FTP Help forum discussing FTP practices, tips and solutions for problems with FTP on multiple platforms. File Transfer Protocol (FTP) was designed specifically for transferring files from one machine to another.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 13th, 2002, 05:53 PM
|
 |
Mobbing Gangster
|
|
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
|
|
|
ftp, showing all ascii codes
Hello there, recently I have faced little problem with accessing some folder from freebsd's ftp client. Assume I connect to ftp 'ftp -a 12.34.56.78' and then either ls or dir there, but some of folder have ascii chars in it, which aren't in english alphavet. I can see them, though, in windows clients, but if I try to cd from bsd's ftp I get 'wrong path' sort of thing, because I do not have some of those chars correctly. So how do I make it show the ascii code rather then char? [tab] doesn't work in most cases, since there can be special char in the beginning...
__________________
And you know I mean that.
|

January 13th, 2002, 11:39 PM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Double-quote the directory name.
|

January 14th, 2002, 11:18 AM
|
 |
Mobbing Gangster
|
|
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
|
|
|
thanks, freebsd, I would but the problem is that I do not see the directory's name when it begins with any special char.
|

January 14th, 2002, 02:38 PM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
When you can't see the dir name, just ls, then copy that dir name and double-quote that name. If copy is not possible, use wildcard.
|

January 14th, 2002, 02:49 PM
|
 |
Mobbing Gangster
|
|
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
|
|
k, I know how to use ls alright  but I cannot see the dir's name. Here, I probably dont explain too good. Try to connect to 206.20.234.50 and access that one dir with long name (now 'aux ' although I cannot access it either because it got special chars in name, and not 'dir')
|

January 14th, 2002, 03:42 PM
|
|
Contributing User
|
|
Join Date: Jan 2001
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
>> now 'aux ' although I cannot access it either
Because many FTP servers on Windows are broken. They should have returned 550 Access denied instead. They should filter dir name like aux, com1 or the like that should not be accessible by FTP client. It's not a problem with ASCII chars at all.
|

January 14th, 2002, 05:47 PM
|
 |
Mobbing Gangster
|
|
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
|
|
|
It is in the way this aux is done, which is not just 'aux', but aux with particular ascii code added to the end so it is not accessable unless you know the code. Sort of fool proof protection, which is used to tag dirs, but that is more of ftp 'games' I play to create 'protected' dirs rather then ftp client problem, so I was wondering if it is possible to pass that 'protection' without knowing the code.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|