Log ls listing to TEXT/ASCII file NOT XML

Advertisement

rec9140
Joined:
Posts:
5

Log ls listing to TEXT/ASCII file NOT XML

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.

Reply with quote

Advertisement

rec9140
Joined:
Posts:
5

Re: Log ls listing to TEXT/ASCII file NOT XML

martin 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.

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.

Reply with quote

Advertisement

You can post new topics in this forum