[Spacewalk-list] Running Remote Commands with ">>" In Script

Matthew Madey mattmadey at gmail.com
Sat May 17 14:50:35 UTC 2014


I've had mixed results with the web console and spacecmd as far as running
scripts on clients.. I've been using a python script to execute custom
scripts on clients and thus far haven't had any problems:

https://github.com/angrox/spacewalk-api-scripts/tree/master/spacewalk-schedule-scriptrun


On Fri, May 16, 2014 at 1:22 PM, Glennie, Jonathan - 0443 - MITLL <
jrglenni at ll.mit.edu> wrote:

> Worked like a charm, thanks!
>
>
>
> *From:* spacewalk-list-bounces at redhat.com [mailto:
> spacewalk-list-bounces at redhat.com] *On Behalf Of *Stas Bobylev
> *Sent:* Friday, May 16, 2014 1:47 PM
> *To:* spacewalk-list at redhat.com
> *Subject:* Re: [Spacewalk-list] Running Remote Commands with ">>" In
> Script
>
>
>
> Have you tried using “tee -a” instead of “>>” in your script?
>
>
>
> E.g.
>
> echo “blah” | tee -a some_file
>
> This email and any attachments are strictly confidential, may be
> privileged, and are intended only for the use of the person(s) named above.
> Any other person is strictly prohibited from disclosing, distributing,
> copying or using it. If you are not the intended recipient (or are not
> receiving this communication on behalf of the intended recipient), please
> notify the sender immediately by return email or telephone call, and
> securely destroy this communication. Thank you.
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140517/e5da3f42/attachment.htm>


More information about the Spacewalk-list mailing list