Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 5688  / 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
;