<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"><<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>It's a bit weird because the very same command works like a charm once i'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 "command"<br><br></div><div>"-i" 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>