I have a user who needs to change which group files get written out as several times within a script.
at first we looked at using setgroups and newgrp but those spawn a new shell and thus break the script.
i know at the end of the day we can just do a chgrp as a second operation for whatever files are being written but i'm wondering if there is some clever way to make this work in aix? on solaris i can use here docs with newgrp but seems the aix version isn't as accommodating.
at first we looked at using setgroups and newgrp but those spawn a new shell and thus break the script.
i know at the end of the day we can just do a chgrp as a second operation for whatever files are being written but i'm wondering if there is some clever way to make this work in aix? on solaris i can use here docs with newgrp but seems the aix version isn't as accommodating.