× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I've had performance problems using -exec with 'find' on the iSeries, especially if it's going to find a bunch of files. (I use PASE shell more than QShell.) A faster way might be

QSH CMD('find <startdir> -user <OLDUSER> | xargs chown <NEWUSER>')

I think the difference is that -exec spawns a separate job for each object it finds, while xargs batches up a handful of files into one job based on total command length or something.



-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: Thursday, August 04, 2016 8:52 AM
To: Midrange Systems Technical Discussion
Subject: Re: CHGOWN

On 8/4/2016 7:49 AM, Rob Berendt wrote:
Is there a variation of the IFS command CHGOWN which will change the owner
of all IFS objects owned by one owner to another?
This person owns too many objects to try to use WRKOBJOWN and option 9

Try this ...

QSH CMD('find <startdir> -user <OLDUSER> -exec chown <NEWUSER> {} \;')

david


--
David Gibbs
midrange.com

* IBM Power Systems Champion

IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 50 miles in the Hawaii Tour de Cure to raise money for diabetes research, education, awareness, and advocacy.

Make an investment in a diabetes free future by donation. Visit https://urldefense.proofpoint.com/v2/url?u=http-3A__main.diabetes.org_goto_aloha16&d=DQICAg&c=3crv0V5Gxwbo5hXTsiQI6g&r=PkbfvkKxtcDeNvEOH5BjJL4QM0EQmj0cLL71lzl405I&m=B9X63I9tQ8ymYQEdiSwe4vfjrF9pNM66Bj9eNkANGYk&s=IfeyRC5yzEof8CpgTmf7qkS2E4VHulaB4VqHKBzykuY&e= to make a tax deductible donation.

I may have diabetes, but diabetes doesn't have me!
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.midrange.com_mailman_listinfo_midrange-2Dl&d=DQICAg&c=3crv0V5Gxwbo5hXTsiQI6g&r=PkbfvkKxtcDeNvEOH5BjJL4QM0EQmj0cLL71lzl405I&m=B9X63I9tQ8ymYQEdiSwe4vfjrF9pNM66Bj9eNkANGYk&s=xPmf8N6E3yMOeMq_Gv1MfPo_Qc9Vy2R49OJB8YRtZoA&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://urldefense.proofpoint.com/v2/url?u=http-3A__archive.midrange.com_midrange-2Dl&d=DQICAg&c=3crv0V5Gxwbo5hXTsiQI6g&r=PkbfvkKxtcDeNvEOH5BjJL4QM0EQmj0cLL71lzl405I&m=B9X63I9tQ8ymYQEdiSwe4vfjrF9pNM66Bj9eNkANGYk&s=Agwwfr3VOyaCEsBONAk8BUF4HiZBdboAsixMnOAppaY&e= .

Please contact support@xxxxxxxxxxxx for any subscription related questions.
________________________________

Notice from Bob Evans Farms: This e-mail message, including any attachments, may contain confidential information that is intended only for the person or entity to which it is addressed. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.