SOLVED!
"open sftp://root:<redacted>@<redacted>/ -hostkey=""ssh-<redacted> 255 <redacted>""" ^
"cd /var/spool/asterisk/monitorDONE/Folder/" ^
"lcd C:\Users\<redacted>\Music" ^
"get "*<partial file name>*"" ^
"exit"
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
"open sftp://root:<redacted>@<redacted>/ -hostkey=""ssh-<redacted> 255 <redacted>""" ^
"cd /var/spool/asterisk/monitorDONE/Folder/" ^
"lcd C:\Users\<redacted>\Music" ^
"get "*<partial file name>*"" ^
"exit"
"open sftp://root:<redacted>@<redacted>/ -hostkey=""ssh-<redacted> <redacted>/<redacted>""" ^
"cd /var/spool/asterisk/recording/" ^
"get "*40058.mp" C:\Users\<redacted>\Music\ ^
"exit"
. 2024-10-11 11:23:47.707 Listing file "C:\Users\<redacted>\Music\".
> 2024-10-11 11:23:47.707 Type: SSH_FXP_LSTAT, Size: 60, Number: 1799
< 2024-10-11 11:23:47.798 Type: SSH_FXP_STATUS, Size: 24, Number: 1540
. 2024-10-11 11:23:47.798 Discarding reserved response
< 2024-10-11 11:23:47.798 Type: SSH_FXP_STATUS, Size: 29, Number: 1799
< 2024-10-11 11:23:47.798 Status code: 2, Message: 1799, Server: No such file, Language:
< 2024-10-11 11:23:47.799 Script: Can't get attributes of file 'C:\Users\<redacted>\Music\'.
< 2024-10-11 11:23:47.799 No such file or directory.
< 2024-10-11 11:23:47.799 Error code: 2
< 2024-10-11 11:23:47.799 Error message from server: No such file
. 2024-10-11 11:23:47.800 Script: Failed
. 2024-10-11 11:23:47.800 Script: Exit code: 1
. 2024-10-11 11:23:47.800 Closing connection.
. 2024-10-11 11:23:47.800 Sending special code: 1
. 2024-10-11 11:23:47.807 Session sent command exit status 0
. 2024-10-11 11:23:47.807 Main session channel closed
. 2024-10-11 11:23:47.807 All channels closed
"open sftp://root:<redacted>@<redacted>/ -hostkey=""ssh-<redacted> <redacted>/<redacted>""" ^
"cd /var/spool/asterisk/recording/" ^
"cp *40058.mp /var/spool/asterisk/recordingdone ^
"cd /var/spool/asterisk/recordingdone/" ^
"mv 123456_2001_0824639433_20240724140058.mp C:\Users\<redacted>\Music
"exit"
< 2024-10-11 10:32:37.112 Script: /var/spool/asterisk/recording
> 2024-10-11 10:32:37.112 Script: cp *40058.mp /var/spool/asterisk/recordingdone ^
< 2024-10-11 10:32:37.112 Script: Operation not supported.
. 2024-10-11 10:32:37.113 Script: Failed
. 2024-10-11 10:32:37.113 Script: Exit code: 1
. 2024-10-11 10:32:37.113 Closing connection.