diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-10-25 14:09:41 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-10-25 14:09:41 +0200 |
commit | d8bde8f7b35078dd07ee76bc493031aac315fcbb (patch) | |
tree | 8c9cd209dbf792a3d5d889f213734f956ac1c0e1 /sys/man/1/torrent | |
parent | 45cc898e4a626cc67312629ae6fe2d25e6cfd733 (diff) |
torrent: fix \0 escaping bug, add -c option to create new torrents
Diffstat (limited to 'sys/man/1/torrent')
-rw-r--r-- | sys/man/1/torrent | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/sys/man/1/torrent b/sys/man/1/torrent index cf423d074..e4a215762 100644 --- a/sys/man/1/torrent +++ b/sys/man/1/torrent @@ -5,21 +5,21 @@ torrent \- bittorrent client .B ip/torrent [ .B -d -] -[ +] [ .B -v -] -[ +] [ .B -p -] -[ +] [ .B -m .I mtpt -] -[ +] [ +.B -t +.I url +] [ .B -s -] -[ +] [ +.B -c +] [ .I file ] .SH DESCRIPTION @@ -36,7 +36,24 @@ Before files can be transmitted, a torrent-file needs to be created describing the pieces of the files and other meta-data like network addresses of the trackers. .PP -.I Torrent +This is done with the +.B -c +option. If provided, +.I torrent +reads the file given at the final +.I file +argument (or standard-input when omited) and writes +a torrent file to standard-output and exits. +A tracker +.I url +should be given with the +.B -t +option in that case. +.PP +Without the +.B -c +option, +.I torrent downloads the files that are described in the torrent-file given by the .I file @@ -74,7 +91,13 @@ To monitor the download progress, the option can be given to cause the completed and total number of pieces written as a line of text to standard-output in one second intervals. -.SH EXAMPLE +.SH EXAMPLES +Create new torrent file +.EX +ip/torrent -t http://exodus.desync.com/announce \\ + -c 9atom.iso >9atom.torrent +.EE +.LP Download the latest iso file of the distribution .EX cd /tmp |