My xbox is special. Unlike the store bought xboxen, mine has an FTP server that I can use to put files on it and take them off. Unfortunately, the ftp server doesn't have a complete set of ftp commands.
ls -al works fine, but
ls does not. NLIST doesn't work, CD by absolute pathnames doesn't always work, though CD by relative filenames usually does.
I can ncftp the box (though some things don't work), but I can't mount it with lufs, midnight commander, etc...
I reasoned out that I could probably write an FTP proxy that would take commands like ls, NLST and re-write them -- to make it appear the commands were finished.
Every time I started to write the FTP proxy, I discovered the project was a great deal more difficult than I wanted it to be. Is there a really easy way to write an FTP proxy that I'm just missing? I found a few things on CPAN, but nothing specifically helpful.
Net::FTPServer seems like the coolest ftp server I have ever seen. I'd guess it can help me write my proxy. But I'm just not sure that's a good way. Is tjat a good way? Is there a better way?
All tips welcome. Thanks for your help.
In reply to FTP Proxy
by jettero
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.