]> Cypherpunks.ru repositories - nncp.git/blobdiff - doc/usecases.texi
POSIX tells that $ character is default shell prompt
[nncp.git] / doc / usecases.texi
index 1c0a750bfe15e5254bed8e6c30bfaa72ec6410c7..36269641868354235ba5106ff6bcc2f8294cbe67 100644 (file)
@@ -78,8 +78,8 @@ daemon}.
 The command:
 
 @verbatim
-% nncp-file file_i_want_to_send bob:
-% nncp-file another_file bob:movie.avi
+$ nncp-file file_i_want_to_send bob:
+$ nncp-file another_file bob:movie.avi
 @end verbatim
 
 will queue two files for sending to @emph{bob} node. Fire and forget!
@@ -101,9 +101,9 @@ niceness level, that will guarantee that it will be processed earlier or
 later than the other ones. Nearly all commands has corresponding option:
 
 @verbatim
-% nncp-file -nice FLASH myfile node:dst
-% nncp-xfer -nice PRIORITY /mnt/shared
-% nncp-call -nice NORMAL bob
+$ nncp-file -nice FLASH myfile node:dst
+$ nncp-xfer -nice PRIORITY /mnt/shared
+$ nncp-call -nice NORMAL bob
 [...]
 @end verbatim
 
@@ -114,8 +114,8 @@ storages.
 You can also use CD-ROM and tape drives:
 
 @verbatim
-% nncp-bundle -tx bob | cdrecord -tao -
-% nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240
+$ nncp-bundle -tx bob | cdrecord -tao -
+$ nncp-bundle -tx bob | dd of=/dev/sa0 bs=10240
 @end verbatim
 
 @node UsecaseNoLink
@@ -129,7 +129,7 @@ Assume that you send two files to @emph{bob} node. Insert USB storage
 device (SD is preferable!), mount it and run @ref{nncp-xfer}:
 
 @verbatim
-% nncp-xfer -node bob /media/usbstick
+$ nncp-xfer -node bob /media/usbstick
 @end verbatim
 
 to copy all outbound packets related to @emph{bob}. Use @option{-mkdir}
@@ -141,14 +141,14 @@ If you use single storage device to transfer data both to @emph{bob} and
 outgoing packets.
 
 @verbatim
-% nncp-xfer /media/usbstick
+$ nncp-xfer /media/usbstick
 @end verbatim
 
 Unmount it and transfer storage to Bob and Alice. When they will insert
 it in their computers, they will use exactly the same command:
 
 @verbatim
-% nncp-xfer /media/usbstick
+$ nncp-xfer /media/usbstick
 @end verbatim
 
 to find all packets related to their node and copy them locally for
@@ -166,8 +166,8 @@ You can use @ref{Bundles, bundles} and stream them above. They are just
 a sequence of @ref{Encrypted, encrypted packets} you can catch on.
 
 @verbatim
-% nncp-bundle -tx alice bob eve ... | command to send broadcast
-% command to receive broadcast | nncp-bundle -rx
+$ nncp-bundle -tx alice bob eve ... | command to send broadcast
+$ command to receive broadcast | nncp-bundle -rx
 @end verbatim
 
 With built-in packet duplicates detection ability, you can retransmit
@@ -230,13 +230,13 @@ in the very first packet) secure transport with forward secrecy
 property.
 
 @verbatim
-% nncp-daemon -bind [::]:5400
+$ nncp-daemon -bind [::]:5400
 @end verbatim
 will start TCP daemon listening on all interfaces for incoming
 connections.
 
 @verbatim
-% nncp-call bob
+$ nncp-call bob
 @end verbatim
 will try to connect to @emph{bob}'s node known TCP addresses (taken from
 configuration file) and send all related outbound packets and retrieve