Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2008, 02:47 PM   #1
nagyv
Member
nagyv began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2008
Device: iliad
simple syncing on Linux

Hi!

The attached script simply copies one folder (and its subfolders) to another place (probably your iliad). It doesn't overwrite already existing files.

Then it also downloads the contents of the outbox folder, without overwriting anything.

How to use it?
  • Copy the file to a directory under your path, and get rid of the .txt extension (it's only for uploading)
  • Chmod it to be executable
  • Change the variables at the beginning of the file
  • Once the iLiad is mounted, run the file

Todo
The script has one major drawback, that it is not run automatically. I've tried to run it from udev, but seemingly at that time it is not yet mounted, only the block device is created.
If someone would find out how to delay the running of the script, or which other service should be used. Please, share your info with me as well!
Anyway, the udev rule is (put in under /etc/udev/rules.d/10-local.rule):
Code:
SUBSYSTEM=="block", SUBSYSTEMS=="usb", ATTRS{product}=="ER0100 eReader                   ", ATTRS{manufacturer}=="iRex TechnologiesBV   ", RUN+="/home/nagyv/bin/iliadSync.sh & disown"
Of course, don't forget to change the path to the script.
Attached Files
File Type: txt iliadSync.sh.txt (635 Bytes, 309 views)
nagyv is offline   Reply With Quote
Old 04-15-2008, 03:38 PM   #2
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Would it not be easier to setup rsync and cron (included in busybox)? I'm just curious, as I've never messed with udev.
Adam B. is offline   Reply With Quote
Advert
Old 04-16-2008, 04:05 AM   #3
nagyv
Member
nagyv began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Apr 2008
Device: iliad
I was thinking about it, but I don't know how rsync treats the file<->directory conversions. + I didn't wanted to install anything on my iLiad, so the desktop has to mount it to run the software (moreover, for the moment I can't connect via wifi, just with USB)

otherwise I prefer the "run on mounting" approach, and the reason I made this script is that I thought it would work

anyway, as I am just a 2 day old, non-programmer iLiad owner, I am kind of satisfied
nagyv is offline   Reply With Quote
Old 04-16-2008, 06:01 AM   #4
kusmi
Connoisseur
kusmi began at the beginning.
 
kusmi's Avatar
 
Posts: 73
Karma: 16
Join Date: Jul 2006
Location: Zurich, Switzerland
I just installed Samba on my Linux box and now use the iLiad-integrated method for exchanging documents over WiFi with my Linux box.

So my "workflow" looks like this:
  1. I mount the linux Samba share on my Laptop and put my documents in there (I even added a shortcut to my printer-panel, so I can directly "print-to-my-linux-box", this works quite well on my Mac-Laptop)
  2. Whenever I'm ready, I turn on my iLiad and press the iDS button to sync with my linux server. All new documents get transfered to my iLiad. All documents in my iliad-outbox get synced to my Linux box

I also created a small script, which is running on my Linux-box to automatically merge the scribbles I did on my PDF and produce annotated PDFs (thanks to iLiadScribbleMerger)

The script for doing this "scribble merging" is attached. This file is just added to the cron-job to execute every 1 minute...

Code:
>crontab -l
*/1 * * * * /home/michi/iLiadConvert/convertScribble.rb > /home/michi/iLiadConvert/output.log 2>&1
Attached Files
File Type: txt convertScribble.rb.txt (1.8 KB, 291 views)
kusmi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
syncing metadata Daephex Calibre 6 11-20-2010 02:29 PM
Syncing? enn Calibre 4 09-30-2010 11:45 PM
erm, simple question , hope for simple answer! al zymers Amazon Kindle 5 09-25-2010 01:01 PM
Simple question for a simple mind :) PKFFW OpenInkpot 6 08-27-2009 09:00 PM
A Syncing Question sUnShInE Which one should I buy? 10 03-12-2009 11:33 AM


All times are GMT -4. The time now is 12:05 AM.


MobileRead.com is a privately owned, operated and funded community.