Topic "Log ls listing to TEXT/ASCII file NOT XML"

Author Message
rec9140
[View user's profile]

Joined: 2009-05-04
Posts: 5
I would love to see a way to do:

ls > remotedir.txt

So that the directory listing is saved to a file, remotedir.txt

/log and XML are no good.

/log just adds it to the log with other stuff, I don't need.

XML, don't use it, don't like it, don't want it.

This would make it a simple task to email via sendmail or other function, the ls output for other tasks to users with out adding a XML decoding layer and processing.

Thanks.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Sorry, I'm not going to introduce duplicate functionality, just because you do not like XML...

See guide to advanced scripting to learn how to easily extract directory listing from XML log.
_________________
Martin Prikryl
rec9140
[View user's profile]

Joined: 2009-05-04
Posts: 5
prikryl wrote:
Sorry, I'm not going to introduce duplicate functionality, just because you do not like XML...


I don't see XML being a plus when a listing in plain ASCII with CR/LF would be x file equals x lines in the files.

12345.pdf
1231231.pdf
123123.pdf
1246496.pdf

Where as XML has extra wasted noise for <fksddfslfj> <aakjka> All that could have been a file name.

prikryl wrote:

See guide to advanced scripting to learn how to easily extract directory listing from XML log.


Thanks, but my scripting language doesn't handle XML. ASCII no problem.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License