Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I need help in writing a shell script that tells the status of the build of a rpm. If the rpm build is 20% complete, it should tell us that
when 100% complete, it should say success...
Anyone out there
Just an idea of thought
I need help in writing a shell script that tells the status of the build of a rpm.
I said in the thread you started about this earlier on (http://www.linuxquestions.org/questi...d.php?t=464803) rpmbuild doesn't support -h and you should start scripting. Now if you need help with writing a script then show us what you've got sofar. My guess is you don't want help but you want the script written for you.
can anyone give me an idea how to go about with the shell script. Can anyoneguide me through the rpm build procedure i mean, when it starts, where it starts so that i can start my shell script. it sounds pretty exciting to me write somethinglike that
as said earlier, rpmbuild has no option for hash (the -h option as in rpm -ivh) so the only way you can generate a package progress percentage is by dividing the process completed by total process and doing a x 100%. now, how or what you categorize as process completed and total process is out of my league. maybe you can compute the total bytes of the files and check how much bytes is already packaged and how much is left to package.
thats what i want to know
actually as far as i know, the sources are copied to a tmp directory and from there it starts executing. First concern is to know the source size. That can be done easier. But the process? how to find out that the process is thismuc complete?
It should be useful for every rpm
i think you would need to make a wrapper for rpmbuild by using scripts. wrap rpmbuild in a script which checks what files rpmbuild has already packaged then use some method to deduce the percentage completed.