<p dir="ltr">Use execvp(3). It resolves executables relative to the users PATH environment variable.</p>
<p dir="ltr">If you look into the man pages for the other exec(3) functions, some of them don&#39;t account for $PATH.</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 18, 2017, 3:00 AM mseaton &lt;<a href="mailto:mseaton@stevens.edu">mseaton@stevens.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I am not sure what we are supposed to do with PATH environment variable.<br>
Can someone shed some light?<br>
Marlon<br>
_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jason Ajmo</div><div>Stevens Institute of Technology</div><div>B.S. Cybersecurity &#39;17</div><div>M.S. Computer Science &#39;18</div><div>0x56FA3123</div></div></div>