Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

repush.sh

Patrick Pedersen edited this page Oct 26, 2018 · 18 revisions

Source

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.

Dependencies

Supported document types

  • PDF
  • EPUB

Usage

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)

Examples

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

Usage Guide

This guide attempts to describe a typical execution of this script

1. Downloading/Installing the 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

2. Executing the script

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
Clone this wiki locally