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

Glennie, Jonathan - 0443 - MITLL jrglenni at ll.mit.edu
Fri May 16 18:22:01 UTC 2014


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140516/53b99d05/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5410 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20140516/53b99d05/attachment.p7s>


More information about the Spacewalk-list mailing list