Mercurial > libervia-backend
comparison doc/jp/pipe.rst @ 3041:72583524cfd3
doc (jp): jp commands are now fully documented:
rel 232
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 Oct 2019 22:49:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3040:fee60f17ebac | 3041:72583524cfd3 |
---|---|
1 ================================================== | |
2 pipe: send/receive data stream through shell pipes | |
3 ================================================== | |
4 | |
5 ``pipe`` commands allow you to send or receive data stream through a Unix shell pipe. | |
6 Salut à Toi will create a network connection (using XMPP and Jingle) between you an your | |
7 contact. | |
8 | |
9 in | |
10 == | |
11 | |
12 Receive data stream. Data will be send to stdout, so it can be piped out or simply print | |
13 to the screen. You can specify bare jids of entities to accept stream for, by default all | |
14 streams are accepted. | |
15 | |
16 example | |
17 ------- | |
18 | |
19 Receive a video stream, and redirect it to mpv_ so show the video:: | |
20 | |
21 $ jp pipe in | mpv - | |
22 | |
23 .. _mpv: https://mpv.io/ | |
24 | |
25 out | |
26 === | |
27 | |
28 Send data stream. Data comes from stdin, so you may use pipe in something or just write | |
29 some text. | |
30 | |
31 The only expected argument is the full jid of the device where the stream must be piped | |
32 out. | |
33 | |
34 example | |
35 ------- | |
36 | |
37 Send a video to louise:: | |
38 | |
39 $ jp pipe out louise@example.org/sat < some_video.webm | |
40 | |
41 Send output from ``cal`` command to louise:: | |
42 | |
43 $ cal | jp pipe out louise@example.org/sat |