Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » FTP LIST -a command
FTP LIST -a command [message #24549] Wed, 02 July 2008 16:55 Go to next message
Eclipse UserFriend
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 13:58 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
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 #25476 is a reply to message #24715] Sat, 02 August 2008 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nhlpsufan.yahoo.com

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 #25598 is a reply to message #25476] Wed, 06 August 2008 17:30 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
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 13:58 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
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 12:20 Go to previous message
Rick is currently offline RickFriend
Messages: 2
Registered: July 2009
Junior Member
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 17:30 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
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
>
>
>
Previous Topic:Copy local file to remote while maintaining directory structure
Next Topic:Need a simple tutorial or help
Goto Forum:
  


Current Time: Fri Apr 19 20:20:36 GMT 2024

Powered by FUDForum. Page generated in 0.03600 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top