<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 12:35 PM, Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>It&#39;s a bit weird because the very same command works like a charm once i&#39;ve logged in.<br><br>Any clue ?<br>
</blockquote><div><br></div><div>How about using sudo?<br><br></div><div>sudo -u username -i &quot;command&quot;<br><br></div><div>&quot;-i&quot; runs the command provided in a login shell, so it runs any /etc/profile, ~/.bashrc, ~/.bash_profile scripts as well<br>
<br></div><div>Chuck<br></div></div></div></div>