<div dir="ltr">One little piece of advice for the next person who might try to change owners on that many messages. You will generate a ton of outbound email if you have notify-owner on assign enabled.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 11:26 AM, Ram <span dir="ltr"><<a href="mailto:ram0502@gmail.com" target="_blank">ram0502@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">`xargs -L 1`  - yep that worked like  charm!<div>thanks Jaye,</div><div>ram</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 11:01 AM, Jaye Mathisen <span dir="ltr"><<a href="mailto:mrcpu@lilpantry.com" target="_blank">mrcpu@lilpantry.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">./rt -i ls owner=usera | sed -e 's/ticket\///' | xargs -L 1 ./rt steal<br>
<br>
or somesuch should get you close.<br>
<br>
Might have to check your documentation for xargs to tell it how to only run 1 command at a time, I think it varies between linux and BSD.<div><div><br>
<br>
<br>
On 11/11/2013 10:54 AM, Ram wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am looking to change the owner of 3000 tickets from usera to userb. It seems that ./rt take|untake|steal does not accept a request to read ids from <stdin> - that is this doesn't work:<br>
./rt -i ls owner=usera | ./rt steal -<br>
<br>
The first problem is that steal|take|untake doesn't like the explicit notation ticket/ticket_id but rather prefers just a ticket_id. That's easy enough to work around - just nuke "ticket/". The issue around not like "-" indicating take parameters from <stdin> is more of a hassle.<br>


<br>
Suggestions?<br>
<br>
thanks<br>
<br>
</blockquote>
<br></div></div><span><font color="#888888">
-- <br>
Jaye Mathisen, Lil Pantry<br>
P:<a href="tel:541-476-0152" value="+15414760152" target="_blank">541-476-0152</a><br>
F:<a href="tel:541-476-0152" value="+15414760152" target="_blank">541-476-0152</a><br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>