[Spacewalk-list] Remote Command Contents/Path

Paul Robert Marino prmarino1 at gmail.com
Tue Jul 31 15:46:17 UTC 2012


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.
On Jul 30, 2012 4:29 PM, "Jason M. Nielsen" <jnielsen at myriad.com> wrote:

> 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.
>
> Or is there an more elegant solution to this? (currently just cutting and
> pasting an export of PATH into scripts which is marginally painful)
>
> Thanks.
>
> ______________________________**_________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/**mailman/listinfo/spacewalk-**list<https://www.redhat.com/mailman/listinfo/spacewalk-list>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120731/26f3134a/attachment.htm>


More information about the Spacewalk-list mailing list