Share a list of jobs from a user to another
From GBWiki
Share a list of job from a user to another
we must update:
-
job.propertiesfile, withjob.ownersproperties - the new user's
joblist.txt
Let $l get the list of job id's. For example to get the last 10 job of user joe
cduser joe l=$(tail -10 joblist.txt)
In the following example, we want to add celine to all the job,with rw privileges.
update jobs
cdjob for i in $l; do perl -pi.bak -e 's/(job.owners=.*)/$1,celine(rw)/' $i/job.properties; done
update user job list
cduser celine for i in $l; do echo $i >>joblist.txt; done
