-
Notifications
You must be signed in to change notification settings - Fork 30
repush.sh
Note: In order for this script to work, the reMarkable web interface must be enabled first under
device settings > storage
rePush serves as a tool that can transfer one or more documents from the command line.
- EPUB
Usage: repush.sh [-o output] [-d] [-r ip] [-p port] doc1 [doc2 ...]
Options:
-o Output directory to which the provided files will be uploaded to
-d Delete file after successful push
-r Push remotely via ssh tunneling
-p If -r has been given, this option defines port to which the webui will be tunneled (default 9000)
Push test1.pdf and test2.pdf via USB
$ bash repush.sh test1.pdf test2.pdf
Bulk push test1.pdf and test2.pdf remotely. This example assumes the devices network ip is 10.0.0.43
.
$ bash repush.sh -r 10.0.0.43 test1.pdf test2.pdf
Bulk push test1.pdf and test2.pdf to /Test/Directory/
$ bash repush.sh -o /Test/Directory test1.pdf test2.pdf
This guide attempts to describe a typical execution of this script
To download this script, use wget:
wget https://github.com/reHackable/scripts/raw/master/host/repush.sh
From here on, you may opt to copy the script to a path defined in the $PATH
variable so that it can be executed directly from the terminal
The device must remain unlocked until the script has completed
In this scenario we are going to remotely push test.pdf to the device. For the sake of simplicity, we will assume that the IP of our device is 10.0.0.43
bash repush.sh -r 10.0.0.43 test.pdf
test.pdf 100% 70MB 4.9MB/s 00:14
Exit request sent.
Successfully transferred 1 out of 1 documents