- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: ENOENT error: no file or directory found | weblogic cookbook at supermarket
- Date: Mon, 2 Feb 2015 10:45:38 -0800
On Monday, February 2, 2015 at 12:38 AM, Amandeep wrote:
>
Hi Daniel,
>
>
JAVA is installed and its present in PATH also. Issue comes up when command
>
executes as " sudo java -jar wls.jar" then system is not recognising the
>
upper command.
>
>
>
Regards
>
Amandeep Singh
sudo generally will try to “sanitize” your environment, including changing
the PATH to something considered “safe”. You may be able to override this
behavior using `sudo -E`, but on some systems sudo is hard-coded to always
sanitize the PATH. In that case you may need to provide the full path to the
command.
HTH,
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.