Home » Eclipse Projects » DSDP - Target Management » FTP LIST -a command
FTP LIST -a command [message #24549] |
Wed, 02 July 2008 12:55  |
Eclipse User |
|
|
|
Originally posted by: nhlpsufan.yahoo.com
The FTP site where my code resided does not support the LIST -a command.
Is there any way to have the FTP service just use the LIST command?
Turning off the "view hidden files" preference does not remove the -a.
Rick
|
|
|
Re: FTP LIST -a command [message #24715 is a reply to message #24549] |
Fri, 11 July 2008 09:58   |
Eclipse User |
|
|
|
Hi Rick,
the FTP LIST command modifiers are configured through the
ftpListingParsers extension point:
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/extension-points/org_eclipse_rse_subsystems_ files_ftp_ftpListingParsers.html
The default implementations are in the
org.eclipse.rse.subsystems.files.ftp / plugin.xml
file:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ plugins/org.eclipse.rse.subsystems.files.ftp/plugin.xml?root =DSDP_Project&view=markup
As you see, the UNIX parser is configured with a "-a" modifier.
So, what you need to do is when you set up your connection, then
in the New Connection Wizard select the "FTP Settings" node and
choose a different listing parser.
If you don't find any appropriate listing parser, just write your
own plugin.xml and contribute a "MyUnix" parser that actually
uses the original Unix parser's Java class but without the -a
modifier.
For completeness, what kind of system is it that you are working
on? We always try to improve the "AUTO" detection of listing parsers,
such that your host could be detected automagically. For that to
work, we'll need to know your FTP system type -- just copy and
paste the first few lines from the FTP Console of a session of yours
(Window > Show View > Other > General > Console; pick FTP Console).
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Rick wrote:
> The FTP site where my code resided does not support the LIST -a
> command. Is there any way to have the FTP service just use the LIST
> command? Turning off the "view hidden files" preference does not remove
> the -a.
>
> Rick
>
|
|
| |
Re: FTP LIST -a command [message #25598 is a reply to message #25476] |
Wed, 06 August 2008 13:30  |
Eclipse User |
|
|
|
Rick,
I'm not sure but it might be that using a dstore server would
help converting the EBCDIC on z/OS USS. Your other option might
be FTP download in Text mode, my understanding is that the
FTP server would also convert EBCDIC to ASCII on the fly.
I'm afraid that an Eclipse Encoding would not help here,
at least I'm not aware of ability to directly interpret
EBCDIC data by means of an Encoding.
But others might have more insight here than I do
(Dave?)
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Rick wrote:
> Martin,
>
> Sorry for the delay in responding to your append...
>
> Thanks for the info, but I was able to get around the -a problem by
> using an SSH connection. I can get a list of files via the Sftp Files
> option. This is actually a better connection method for me, as I need a
> shell for enterning commmands, etc.
>
> But now I have run into a new problem. My FTP host is a z/OS Unix
> System Services (USS) host. All the files are stored in EBCDIC. So, of
> course, when the file is downloaded to Eclipse, no translation is done
> to ASCII. I have verified that an ASCII file downloaded to Eclipse
> displays properly.
>
> I guess I need a new "file encoding" option for EBCDIC...
>
> Rick
>
>
>
|
|
|
Re: FTP LIST -a command [message #575890 is a reply to message #24549] |
Fri, 11 July 2008 09:58  |
Eclipse User |
|
|
|
Hi Rick,
the FTP LIST command modifiers are configured through the
ftpListingParsers extension point:
http://dsdp.eclipse.org/help/latest/topic/org.eclipse.rse.do c.isv/reference/extension-points/org_eclipse_rse_subsystems_ files_ftp_ftpListingParsers.html
The default implementations are in the
org.eclipse.rse.subsystems.files.ftp / plugin.xml
file:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tm.rse/ plugins/org.eclipse.rse.subsystems.files.ftp/plugin.xml?root =DSDP_Project&view=markup
As you see, the UNIX parser is configured with a "-a" modifier.
So, what you need to do is when you set up your connection, then
in the New Connection Wizard select the "FTP Settings" node and
choose a different listing parser.
If you don't find any appropriate listing parser, just write your
own plugin.xml and contribute a "MyUnix" parser that actually
uses the original Unix parser's Java class but without the -a
modifier.
For completeness, what kind of system is it that you are working
on? We always try to improve the "AUTO" detection of listing parsers,
such that your host could be detected automagically. For that to
work, we'll need to know your FTP system type -- just copy and
paste the first few lines from the FTP Console of a session of yours
(Window > Show View > Other > General > Console; pick FTP Console).
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Rick wrote:
> The FTP site where my code resided does not support the LIST -a
> command. Is there any way to have the FTP service just use the LIST
> command? Turning off the "view hidden files" preference does not remove
> the -a.
>
> Rick
>
|
|
|
Re: FTP LIST -a command [message #576392 is a reply to message #24715] |
Sat, 02 August 2008 08:20  |
Eclipse User |
|
|
|
Martin,
Sorry for the delay in responding to your append...
Thanks for the info, but I was able to get around the -a problem by using
an SSH connection. I can get a list of files via the Sftp Files option.
This is actually a better connection method for me, as I need a shell for
enterning commmands, etc.
But now I have run into a new problem. My FTP host is a z/OS Unix System
Services (USS) host. All the files are stored in EBCDIC. So, of course,
when the file is downloaded to Eclipse, no translation is done to ASCII.
I have verified that an ASCII file downloaded to Eclipse displays properly.
I guess I need a new "file encoding" option for EBCDIC...
Rick
|
|
|
Re: FTP LIST -a command [message #576521 is a reply to message #25476] |
Wed, 06 August 2008 13:30  |
Eclipse User |
|
|
|
Rick,
I'm not sure but it might be that using a dstore server would
help converting the EBCDIC on z/OS USS. Your other option might
be FTP download in Text mode, my understanding is that the
FTP server would also convert EBCDIC to ASCII on the fly.
I'm afraid that an Eclipse Encoding would not help here,
at least I'm not aware of ability to directly interpret
EBCDIC data by means of an Encoding.
But others might have more insight here than I do
(Dave?)
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Rick wrote:
> Martin,
>
> Sorry for the delay in responding to your append...
>
> Thanks for the info, but I was able to get around the -a problem by
> using an SSH connection. I can get a list of files via the Sftp Files
> option. This is actually a better connection method for me, as I need a
> shell for enterning commmands, etc.
>
> But now I have run into a new problem. My FTP host is a z/OS Unix
> System Services (USS) host. All the files are stored in EBCDIC. So, of
> course, when the file is downloaded to Eclipse, no translation is done
> to ASCII. I have verified that an ASCII file downloaded to Eclipse
> displays properly.
>
> I guess I need a new "file encoding" option for EBCDIC...
>
> Rick
>
>
>
|
|
|
Goto Forum:
Current Time: Sat May 10 08:46:09 EDT 2025
Powered by FUDForum. Page generated in 0.04608 seconds
|