roasted | hello | 04:38 |
---|---|---|
roasted | fired up my r-pi with openelec tonight | 04:38 |
roasted | worked wonderfully | 04:38 |
roasted | once I get my hdds in for my server Ill host videos there and auto mount the smb share on the r-pi... stream over the network. pro. | 04:38 |
InHisName | I want to set an evironment variable BEFORE invoking python. How to do that ? gksu python script.py | 06:08 |
rmg51 | Morning | 10:36 |
waltman | Morning. | 12:43 |
JonathanD | hi waltman | 12:50 |
waltman | yo | 12:54 |
InHisName | Hey anyone pay attention to my 1am question? Oh, yes, Good Morning ! | 14:08 |
waltman | InHisName: VAR=value python script.py | 14:26 |
waltman | That works for any command, e.g. TZ=Europe/Helsinki date | 14:27 |
InHisName | But, waltman, when I click the Icon on desktop with the command from 1am comment, the path is not there, it fails. Need a way to inject the path before starting the command. ---> gksu python script.py | 14:29 |
waltman | what's gsku? | 14:30 |
InHisName | Would VAR=value gksu python script.py work ? | 14:30 |
waltman | probably, depending on what gksu is | 14:30 |
waltman | ah | 14:30 |
InHisName | I'll try that then. | 14:31 |
waltman | you could also try putting it after gksu. With sudo it works either way. | 14:31 |
InHisName | Nope, adding that into the front of command does NOT work. Program does not start anymore. | 14:33 |
InHisName | OK, I'll try that, then. | 14:33 |
InHisName | Nope, just prompt for su password, then nada ! | 14:35 |
InHisName | Where can I put it during bootup. THAT should do it just grand. | 14:35 |
InHisName | ubuntu 12.10 | 14:35 |
InHisName | It was put into .bashrc but no good either. can't find an "rc" file for python. | 14:36 |
waltman | can you modify the environment variable inside the script? | 14:38 |
waltman | http://o3.aolcdn.com/dims-shared/dims3/PATCH/resize/600x450/http://hss-prod.hss.aol.com/hss/storage/patch/1d65d35c3eea7d49422576a13d4b6b50 # this is what it was like getting home on the R5 yesterday | 14:41 |
InHisName | The R5 is a coal train??? | 15:07 |
InHisName | Did you really get to help shovel ? | 15:08 |
InHisName | I tried using -->os.environ['VARIB']="stuf" but that aparently wasn't good enough to work. | 15:09 |
waltman | OK, maybe I'm exaggerating a bit... | 15:10 |
InHisName | Best that I set it during boot. What script always runs that I can add an export environment var to it ? | 15:10 |
waltman | That is, in fact, the same train line, but from like 100 years ago. | 15:11 |
waltman | http://brynmawr.patch.com/articles/historical-snow-photo-where-and-when-was-this-taken#photo-13128409 | 15:11 |
InHisName | Boy ! you've been riding that train way too long, waltman | 15:16 |
Samuraialba | Good bacon to all! | 19:41 |
Samuraialba | I'm now a SubReddit Mod :O | 19:41 |
Samuraialba | www.reddit.com/r/ImNewOnTheInternet | 19:41 |
InHisName | I'm too young for that stuff | 20:13 |
Samuraialba | lol | 20:23 |
teddy-dbear | stupid 12.10 is taking way to long to update | 22:21 |
teddy-dbear | it's been installing stuff almost all day :P | 22:21 |
Samuraialba | ouch | 22:24 |
Samuraialba | what is your connect like? | 22:24 |
teddy-dbear | download is done | 22:33 |
teddy-dbear | it's all install for like the lat 4 hours | 22:33 |
Samuraialba | oh wow | 22:36 |
Samuraialba | :( | 22:36 |
Samuraialba | I'm afraid to fire up my server VM for it now | 22:36 |
Samuraialba | lol | 22:36 |
Samuraialba | got a spiffy DUAL Quad Xeon | 22:37 |
teddy-dbear | finally at the clean up stage | 23:09 |
teddy-dbear | now i have to restart my laptop because of a kernel update :-/ | 23:10 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!