mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 15:11:56 +01:00
docs: Document --url and --unix-socket on the rc page
This page started talking about what commands you can send, without explaining how to actually send them. Fixes #8252.
This commit is contained in:
parent
0ce2e12d9f
commit
9218b69afe
@ -180,7 +180,7 @@ User-specified template.
|
|||||||
Rclone itself implements the remote control protocol in its `rclone
|
Rclone itself implements the remote control protocol in its `rclone
|
||||||
rc` command.
|
rc` command.
|
||||||
|
|
||||||
You can use it like this
|
You can use it like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ rclone rc rc/noop param1=one param2=two
|
$ rclone rc rc/noop param1=one param2=two
|
||||||
@ -190,8 +190,23 @@ $ rclone rc rc/noop param1=one param2=two
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Run `rclone rc` on its own to see the help for the installed remote
|
If the remote is running on a different URL than the default
|
||||||
control commands.
|
`http://localhost:5572/`, use the `--url` option to specify it:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ rclone rc --url http://some.remote:1234/ rc/noop
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if the remote is listening on a Unix socket, use the `--unix-socket` option
|
||||||
|
instead:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ rclone rc --unix-socket /tmp/rclone.sock rc/noop
|
||||||
|
```
|
||||||
|
|
||||||
|
Run `rclone rc` on its own, without any commands, to see the help for the
|
||||||
|
installed remote control commands. Note that this also needs to connect to the
|
||||||
|
remote server.
|
||||||
|
|
||||||
## JSON input
|
## JSON input
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user