Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-07-2011, 09:16 AM   #1
jennie
Member
jennie began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2010
Device: kindle 3
linux nautilus script: send file to kindle

I just wrote an extremely basic script to email books to my kindle from the nautilus file manager, using my gmail account. It would be nice if someone else could improve on it, but in the meantime, for whoever might be interested:
Code:
#!/bin/sh

calibre-smtp -r smtp.gmail.com --port 587 --username myusername@gmail.com --password mypassword -vv --subject convert --attachment $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS myusername@gmail.com myusername@free.kindle.com "email"
Bear in mind that this script leaves your password completely unprotected. Also, it will only work if you select one file at a time. Spaces, non-latin characters, and accented characters are not allowed in the filename.

If you still want to use it, you will need to replace every instance of myusername and mypassword with your coordinates, and save the code to a file named "Send to Kindle" inside /home/user/.gnome2/nautilus-scripts . Then, make sure you make the file executable. Obviously, you must have calibre installed.
jennie is offline   Reply With Quote
Old 12-22-2011, 02:02 AM   #2
inameiname
Groupie
inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.
 
Posts: 156
Karma: 20390
Join Date: Feb 2009
Device: none
Quote:
Originally Posted by jennie View Post
I just wrote an extremely basic script to email books to my kindle from the nautilus file manager, using my gmail account. It would be nice if someone else could improve on it, but in the meantime, for whoever might be interested:
Code:
#!/bin/sh

calibre-smtp -r smtp.gmail.com --port 587 --username myusername@gmail.com --password mypassword -vv --subject convert --attachment $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS myusername@gmail.com myusername@free.kindle.com "email"
Bear in mind that this script leaves your password completely unprotected. Also, it will only work if you select one file at a time. Spaces, non-latin characters, and accented characters are not allowed in the filename.

If you still want to use it, you will need to replace every instance of myusername and mypassword with your coordinates, and save the code to a file named "Send to Kindle" inside /home/user/.gnome2/nautilus-scripts . Then, make sure you make the file executable. Obviously, you must have calibre installed.

Interesting. I don't know if I would use it a lot, especially as I don't like keeping usernames and passwords I use on something that can be seen by all, but I am a nautilus-script nut, so it definitely seems like a pretty cool idea. Thanks.
inameiname is offline   Reply With Quote
Reply

Tags
linux, nautilus, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to fetch & send to Kindle (Mac/Linux) clanger9 Calibre 5 07-10-2012 06:47 AM
Linux script for images to Kindle Screensaver soymicmic Kindle Developer's Corner 4 01-28-2011 12:20 PM
iLiad Launch file from script dedo iRex Developer's Corner 3 07-21-2009 05:32 AM
Send to Device - Cybook - Linux jethro10 Calibre 5 03-06-2009 04:30 PM


All times are GMT -4. The time now is 10:30 AM.


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