The Rock
asked on
unable to put logic for reading multiple repo in a single file
Hi All,
I have created one script for checking the status of YUM repo what are enabled / disabled. Also added the feature of enabling and disabling the repo.
for ex.:
1. it gives list of all repo of that server with status like enable or disable with base url link.
2. you can enable and disable it also.
Problem / Add on required:
1. For now my script works only with one repo per file . when it comes like multiple repo entry per file it wont work.
2. For now i am only able to enable or disable one repo at a time. but i am looking for enabling or disabling multiple repo at a time .
Please help as i am tired of think of more logics for these features.
I am attaching the script with this question.
Thanks a lot for your quick effort.repotest.sh
I have created one script for checking the status of YUM repo what are enabled / disabled. Also added the feature of enabling and disabling the repo.
for ex.:
1. it gives list of all repo of that server with status like enable or disable with base url link.
2. you can enable and disable it also.
Problem / Add on required:
1. For now my script works only with one repo per file . when it comes like multiple repo entry per file it wont work.
2. For now i am only able to enable or disable one repo at a time. but i am looking for enabling or disabling multiple repo at a time .
Please help as i am tired of think of more logics for these features.
I am attaching the script with this question.
Thanks a lot for your quick effort.repotest.sh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I cannot complement your cloning of subscription packages. On RHEL one manages packages on rhn/satellite/subscription -manager
ASKER
Okay I understand but still I need it. Is it possible if you can help me with one nested loop under my loop which is checking .repo file and then enable it or disable it.
I just need a nested loop for checking all repo configured under single .repo file.
Thanks
I just need a nested loop for checking all repo configured under single .repo file.
Thanks
ASKER