Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4799

Beginners • Re: PATH=/ ... :$PATH does not work?

$
0
0
Following code executed:

Code:

PATH=/home/pi/bin:$PATH
but upon verification with

Code:

sudo visudo
this new path does not appear..

What now?
How to get a path properly programmed?
I take it `visudo` is in /home/pi/bin and you expect it to be executed by `sudo visudo`

SUDO changes the path it looks on I just discovered at https://unix.stackexchange.com/question ... serve-path

I was able to get one of my local commands to run using "$ sudo env "PATH=$PATH"

Code:

paul@p400PI:~ $ send_email_attachmentusage: send_email_attachment [-h] --subject SUBJECT --file FILE [--debug] [--nosend]send_email_attachment: error: the following arguments are required: --subject, --filepaul@p400PI:~ $ sudo send_email_attachmentsudo: send_email_attachment: command not foundpaul@p400PI:~ $ sudo env "PATH=$PATH" send_email_attachmentusage: send_email_attachment [-h] --subject SUBJECT --file FILE [--debug] [--nosend]send_email_attachment: error: the following arguments are required: --subject, --file

Statistics: Posted by DS256 — Tue Jan 07, 2025 7:55 pm



Viewing all articles
Browse latest Browse all 4799

Trending Articles