--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3cc0a8f8-8b39-4948-9084-55a0b6628399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You could try:
sudo -E bash -c 'echo $LD_LIBRARY_PATH'
The -E is --preserve-env
sudo echo $LD_LIBRARY_PATH
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/b14d6f43-6b3f-6bb7-691f-af9978d65054%40gmail.com.
Looks like it is still not preserving the env variable:nsaboo@ubuntu:~/Documents/goworkspace/src/poc$ export LD_LIBRARY_PATH=/usr/local/lib/syslog-ng
nsaboo@ubuntu:~/Documents/goworkspace/src/poc$ sudo -E bash -c 'echo $LD_LIBRARY_PATH'
nsaboo@ubuntu:~/Documents/goworkspace/src/poc$ echo $LD_LIBRARY_PATH
/usr/local/lib/syslog-ng
nsaboo@ubuntu:~/Documents/goworkspace/src/poc$