Quote:
Originally Posted by eschwartz
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!
|
Thanks eschwartz, but I'm just chasing my tail with this stuff at this point. (I need a better grasp of the basics.) First of all. You say put the file in the Home folder/directory. Well, the 'downloads'
is in the home directory. Is there a certain place in the Home directory it should be in?
And I tried the alternative method. Right away (after posting:
Code:
sudo mv Downloads/calibre-upgrade.sh /usr/bin/calibre-upgrade.sh
I got hit with this message:
"mv: cannot stat '/path/to/file': No such file or directory."
I need something to fall back on before I attempt this stuff. As it is, one false move and I'm skunked.
So far what I've done is this (see screenshot). I've tried to delete it but been unable to. Do you think it's okay to just leave it? And if not, can you tell me how to delete it.
I'll get this stuff better in a while and I'll come back and try your suggestions again.
I already feel like I've learned a good bit, and I really do appreciate the help. Thanks!