<p>Well you could source your bash profile first but in general you should never assume in any script or with any automation system that your path will have any thing in it or that you will be in the current working directory you would normally expect. In other words always put the full path and you will never have a problem.</p>

<div class="gmail_quote">On Jul 30, 2012 4:29 PM, "Jason M. Nielsen" <<a href="mailto:jnielsen@myriad.com">jnielsen@myriad.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there an easy method of changing the default contents of a "Remote Command" or at least setting the default path?  Currently it doesnt take on the typical root path and even doing an "su -" within the command doesnt result in a full login hence things like "service" and so forth are not in the path.<br>

<br>
Or is there an more elegant solution to this? (currently just cutting and pasting an export of PATH into scripts which is marginally painful)<br>
<br>
Thanks.<br>
<br>
______________________________<u></u>_________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/spacewalk-<u></u>list</a><br>
</blockquote></div>