View Single Post
Old 02-25-2014, 02:13 AM   #37
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The command I gave was to move it from in the home folder, if you have saved it in Downloads, the file is "Downloads/calibre-upgrade.sh" not "calibre-upgrade.sh".

Move the file to the Home directory or try this:
Code:
sudo mv Downloads/calibre-upgrade.sh /usr/bin/calibre-upgrade.sh
Then enter
Code:
sudo chown root:root /usr/bin/calibre-upgrade.sh
And finally
Code:
sudo EDITOR="gedit" crontab -e
which will open gEdit and you will paste
Code:
0 6 * * 5 /usr/bin/calibre-upgrade.sh > /dev/null 2>&1
on a new line. Make sure to press enter afterward to begin an empty line.




If the terminal tells you "mv: cannot stat '/path/to/file': No such file or directory." It means the first command, to "mv" or "move" the file, couldn't find the file to move.

chown wouldn't work because it couldn't find the file, and afterward because the next command ended up at the end somehow; you told it
Code:
sudo chown root:root /usr/bin/calibre-upgrade.shsudo EDITOR="gedit" crontab -e
instead of
Code:
sudo chown root:root /usr/bin/calibre-upgrade.sh
Make sure you don't accidentally paste two lines instead of one!

And don't worry, this may seem confusing now but eventually, with practice, you will get the hang of it.



Also, for fun, here is a link to the command line tutorial I used to first learn how to do this stuff: http://www.ee.surrey.ac.uk/Teaching/Unix/

Enjoy!

Last edited by eschwartz; 02-25-2014 at 02:22 AM.
eschwartz is offline