Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

johnnypicnic

Thank you!
johnnypicnic

Return result of LS in exec command

I'm using the [m]ls[m] command to retrieve a list of files from a remote folder but the I can't get the result to output in the console.
"C:\Program Files (x86)\WinSCP\WinSCP.exe"  /log="C:\Temp\WinSCP.log" /ini=nul /command "open sftp://user:12345@sftp.site.com/ -hostkey=""ssh-rsa 2048 stX..........""" "ls /folder/sub_folder" "exit"

Ultimately I would like to run this from within Node-Red and have the list as an array.