Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 5696  / 3 Years ago, thu, june 3, 2021, 9:10:43

I put the following in my /etc/init/myjob.conf file but it doesn't seem to work



env PATH=$PATH:/mnt/data/src
env PYTHONPATH=$PYTHONPATH:/mnt/progs/link


Is it possible to somehow append to an environmental variable.


More From » upstart

 Answers
0

export PATH=~/bin:"$PATH"




You should add this in ~/.bashrc file to work at every user session.



You should restart to see it working or try . .bashrc command to work without restart.


[#24170] Thursday, June 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bunsistent

Total Points: 198
Total Questions: 108
Total Answers: 121

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
bunsistent questions
Thu, Aug 5, 21, 12:26, 3 Years ago
Fri, Jul 16, 21, 00:04, 3 Years ago
Wed, Jul 7, 21, 11:58, 3 Years ago
Tue, May 25, 21, 04:26, 3 Years ago
Fri, May 12, 23, 19:42, 1 Year ago
;