Skip to content

Ability to see progress when redirecting STDOUT #8358

Open

Description

@ukdocCT

The associated forum post URL from https://forum.rclone.org

none

What is your current rclone version (output from rclone version)?

rclone v1.69.0

What problem are you are trying to solve?

I have a remote sftp site configured.
I am trying to capture the output of lsjson to get the details of all the remote files so that i can work on a duplicate file not being transferred (fyi im attempting to replicate over 1 million files from another remote system).

I am using --log-file to capture the logs and --progress to see the status - which works perfect on its own, however the output of lsjson is output to the stdout so the only way of capturing that information is to redirect stdout to a file in the console.

How do you think rclone should be changed to solve that?

Is there a way of outputting the progress information to the console and still redirect the output of lsjson to stdout/file?
I can think of two possible solutions:

  1. add something similar to --output-file to the ls* commands so that their output goes to the file but progress/errors still goes to stdout
  2. add the ability to redirect progress to stderr, that way a redirect in the console still captures the ls file output but i can still see the command progress in the console window

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. ncw commented on Feb 4, 2025

    @ncw
    Member
    1. add something similar to --output-file to the ls* commands so that their output goes to the file but progress/errors still goes to stdout

    This seems plausible.

    1. add the ability to redirect progress to stderr, that way a redirect in the console still captures the ls file output but i can still see the command progress in the console window

    That will interfere with rclone's logging system (--log-file) and would be mega complex. I don't want to do that (shudders).

    @ukdocCT do you want to have a go at option 1 ?

  2. hsdfat commented on Nov 7, 2026

    @hsdfat
    Contributor

    I'm working on option 1: an --output-file flag on ls, lsl, lsd, lsf and lsjson, modelled on the existing one in hashsum. PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions