Skip to content

CLI: ZIP export command informations are display on stderr #2452

@Leepic

Description

@Leepic

Explanations

When the CLI export ZIP command for an user is executed, the verbose informations are display on stderr. This is not an error (see below: result sucess), informations must be on stdout instead.

When the command is executed by cron (eg. inside a script), it cause cron to send an email because of stderr.

Reproduce

/var/www/html/FreshRSS/cli/export-zip-for-user.php --user Leepic > /tmp/Leepic.zip 2> /tmp/Leepic.stderr

cat /tmp/Leepic.stderr
FreshRSS exporting ZIP for user “Leepic”…
Result: success

Workaround

Redirect the command to /dev/null or in a file with >/tmp/Leepic.log 2>&1 but if there is an error in the ZIP export, cron will don't send an email.

Versions

  • FreshRSS: 1.14.3-dev
  • PHP: 5.6.40
  • MySQL Server 5.5.62
  • VPS hosting

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions