On Fri, Mar 17, 2017 at 08:36:01AM -0300, Fabio Utzig wrote:
> On Fri, Mar 17, 2017, at 08:24 AM, then yon wrote:
> > Dear Chris,
> > 
> > When i put sudo newtmgr -c BT01 stat list, it gave me sudo: newtmgr: 
> > command not found.
> 
> It looks like sudo is not preserving your user path, you could try:
> 
> sudo "PATH=$PATH" newtmgr -c BT01 stat list

Hmm, I don't think you'll be able to set environment variables unless
you execute a new shell instance in sudo (e.g., sudo bash -c ...), which
is painful.

This might be the easiest way forward:

    sudo "$(which newtmgr)" -c BT01 stat list

Chris

Reply via email to