|
|
#1 | |
|
Banned
![]() Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
|
(Linux) What am I doing wrong here?
I have set :-
Code:
export CALIBRE_INSTALL_DIR="/opt" Quote:
![]() It is def. set as a "set|grep CALIBRE" returns the correct value. Should it be set as ' rather than " ? |
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Most likely sudo on your system is stripping out the env var. Use a script, instead of putting it in .bashrc and launch the whole script with sudo.
|
|
|
|
|
|
#3 | |
|
Banned
![]() Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
|
I tried :-
Quote:
But as you say the sudo is stripping the export but I can't sudo export. Will look at setting it globally. |
|
|
|
|
|
|
#4 |
|
Banned
![]() Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
|
WEIRD!
If i set the variable globally, it appears in the sudo bash. BUT my bash alias that calls the script still fails however if I enter the python command manually it works. |
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,617
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You script needs to be
#!/bin/bash export CALIBRE_INSTALL_DIR="/opt"&& python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read();main()" Note the absence of sudo in the script itself. Then you run the script itself with sudo |
|
|
|
|
|
#6 |
|
Banned
![]() Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
|
Thanks that works perfectly.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calibre Linux: Wrong version number | samy2 | Calibre | 9 | 06-19-2011 10:59 AM |
| Not sure what I'm doing wrong | crich70 | Conversion | 18 | 04-05-2011 10:13 PM |
| The Robbery: A Short Story that goes wrong for all the wrong reasons | brinlingfm | Self-Promotions by Authors and Publishers | 0 | 03-22-2011 09:20 AM |
| Dates wrong on scheduled news: what am I doing wrong? | Rod Laird | Calibre | 5 | 11-05-2010 07:06 PM |
| I'm obviously doing something wrong. | TheMooch | Calibre | 1 | 11-15-2009 05:40 PM |