[Cyberduck-trac] [Cyberduck] #10613: Erase and restore cursor position in output does not work

Cyberduck trac at cyberduck.io
Thu Feb 14 17:02:06 UTC 2019


#10613: Erase and restore cursor position in output does not work
-------------------------+----------------------
 Reporter:  MarkBlaise   |         Owner:
     Type:  enhancement  |        Status:  new
 Priority:  normal       |     Milestone:
Component:  cli          |       Version:  6.9.0
 Severity:  normal       |    Resolution:
 Keywords:               |  Architecture:  Intel
 Platform:  Windows 8.1  |
-------------------------+----------------------

Comment (by MarkBlaise):

 I have been using -q and then examining the return code from Duck, but
 Duck does not seem to provide a return code.

 Here is my batch script code:
 {{{
 echo Wasabi user for %bckFolder% is "%wasUser%", folder is
 "%wasBckFolder%"  >> %logFile%
 echo executing copy loop ...  >> %logFile%
 for /F "tokens=*" %%A in (\\Odin\Backup-Staging\%bckFolder%\FileList.txt)
 do (
   echo %date% %time% Command = duck  -q -P -e rename --upload
 wasabisys://%wasUser%@%wasBckFolder%/%bckFolder%/ \\odin\Backup-
 Staging\%bckFolder%\%%A  >> %logFile%
   start /wait duck  -q -P -e rename --upload
 wasabisys://%wasUser%@%wasBckFolder%/%bckFolder%/ \\Odin\Backup-
 Staging\%bckFolder%\%%A  >> %logFile%
   echo Done %date% %time%, errorlevel = %errrorlevel%  >> %logFile%
 )
 echo Copy loop complete %date% %time%  >> %logFile%

 }}}
 Note the line at the end of the do loop:

 echo Done %date% %time%, errorlevel = %errrorlevel%  >> %logFile%

 and here is the log file text

 {{{
 executing copy loop ...
 Thu 01/24/2019 17:03:03.23 Command = duck  -q -P -e rename --upload
 wasabisys://T5ZHIOV9VGMNBAKU1HQ4@Blaise-Backup/Magni/ Z:/Backup-
 Staging/Magni/20190121-Magni-Daily_20190124014500.nbd

 Upload complete…
 Done Thu 01/24/2019 17:03:03.23, errorlevel =
 Copy loop complete Thu 01/24/2019 17:05:52.23
 }}}

 the errorlevel appears not to be set ...

--
Ticket URL: <https://trac.cyberduck.io/ticket/10613#comment:6>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows


More information about the Cyberduck-trac mailing list