2
votes
3answers
1k views

Why doesn't sudo -E actually preserve my environment?

I'm trying to sudo some binaries that lies in a custom path. That custom path is removed when I run sudo though, but sudo -E should preserve my path. Why doesn't it work? $ env | egrep ^PATH ...
1
vote
1answer
603 views

ubuntu 10 add path variable for all users all the time

Where can I add to my path that it will be available for all users, all shells, all the time. In this case I want /opt/grails/bin to always be available even when being run as tomcat user from ...
3
votes
3answers
401 views

Differences between linux and Solaris /usr/bin/env

I've a simple script: #!/usr/bin/env perl -w print "Hello World\n" Make this executable, run on Linux, and I get: /usr/bin/env: perl -w: No such file or directory (without the -w, this works ...
1
vote
2answers
698 views

GNU watch - how do I make it read my environment (aliases, functions, etc)

This one has been bugging me for a while: I want to use the marvelous GNU watch command to run a few custom aliases and functions that are defined in my .bashrc, but it is never able to run anything ...