Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mktorrent(1) doesn't support output to stdout #36

Open
paride opened this issue Dec 7, 2019 · 1 comment
Open

mktorrent(1) doesn't support output to stdout #36

paride opened this issue Dec 7, 2019 · 1 comment
Assignees
Labels
feature request The issues requests a yet unimplemented feature. under construction The issue is being worked on.

Comments

@paride
Copy link

paride commented Dec 7, 2019

Forwarded from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699487 (slightly reworded).

A common feature that mktorrent(1) is lacking is the support for writing the resulting Bencode'd data to stdout. The issue is three-fold:

  1. - has no special meaning for --output=, and thus using --output=- results in a file named - being created in the current working directory; (unless such file exists, that is);
  2. alternatively, --output=/dev/stdout (or similar) fails because of the unconditional use of O_CREAT | O_EXCL (as I've noted in another report);
  3. finally, most of the diagnostics (excluding mainly actual errors) is directed to stdout, although it (arguably) makes sense to send them to stderr instead.

The Debian bug report contains a patch implementing this.

PS. Also to note is that as long as the use of mktorrent(1) from Shell code is considered, writing copyright information upon every invocation doesn't seem like a particularly clever idea, either. Perhaps it should be dropped altogether. Or, there could be --version…

@HaniKali
Copy link

HaniKali commented Aug 24, 2020

command > /dev/null 2>&1 does the trick for me on linux.

@pobrn pobrn self-assigned this Jan 10, 2021
@pobrn pobrn added this to the mktorrent 2.0 prototype milestone Jan 10, 2021
@pobrn pobrn added under construction The issue is being worked on. feature request The issues requests a yet unimplemented feature. labels Jan 10, 2021
@pobrn pobrn modified the milestones: mktorrent 2.0-rc0, mktorrent 1.2 Apr 3, 2021
@pobrn pobrn modified the milestones: mktorrent 1.2, mktorrent 2.0-rc0 Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request The issues requests a yet unimplemented feature. under construction The issue is being worked on.
Projects
None yet
Development

No branches or pull requests

3 participants