You are not logged in.

#1 2010-07-17 03:28:23

TheCash
Member
Registered: 2010-07-14
Posts: 41

Setting environment variables on start

Hello,

I was wondering how you set environment variables automaticaly. Currently I'm having to

export LUA_CPATH=/usr/lib/lib?51.so

every time I run a iuplua script

Thanks

Offline

#2 2010-07-17 03:29:19

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Setting environment variables on start

Put it in your ~/.bashrc, but that would mean it would only be for one user.

Last edited by Inxsible (2010-07-17 03:31:18)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-07-17 03:30:40

TheCash
Member
Registered: 2010-07-14
Posts: 41

Re: Setting environment variables on start

thanks

Offline

#4 2010-07-17 03:33:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Setting environment variables on start

Or put it in '/etc/bash.bashrc.local' if you use bash and want to set it for everyone.

Offline

Board footer

Powered by FluxBB