# Status info like rc.status

**URL:** <https://www.ruby-forum.com/t/status-info-like-rc-status/155214>\
**Category:** Ruby\
**Created:** [December 9, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/status-info-like-rc-status/155214 "2008-12-09T14:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enduro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/5f8ce5/32.png) [@enduro](https://www.ruby-forum.com/u/enduro)\
**Post date:** [December 9, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/status-info-like-rc-status/155214/1 "2008-12-09T14:11:23Z")

</div>

Hello,

is there already a library I’m not aware of which allows for easy  
console message formatting similar to the usage of rc.status with the  
init.d scripts? Is there an established “best practices” way for  
displaying the status of several steps to console, or should I write a  
wrapper module regarding status messages myself?

Thanks for your thoughts.

---

<div class="post-metadata">

**Author:** ![enduro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/5f8ce5/32.png) [@enduro](https://www.ruby-forum.com/u/enduro)\
**Post date:** [December 10, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/status-info-like-rc-status/155214/2 "2008-12-10T17:01:02Z")

</div>

2008/12/9 Sven S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> is there already a library I’m not aware of which allows for easy  
> console message formatting similar to the usage of rc.status with the  
> init.d scripts? Is there an established “best practices” way for  
> displaying the status of several steps to console, or should I write a  
> wrapper module regarding status messages myself?

I have no idea what rc.status outputs (my Linux doesn’t have it) but  
chances are that you can pretty easily format your desired output via  
printf or sprintf. What exactly do you need?

Kind regards

robert

---

<div class="post-metadata">

**Author:** ![enduro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/5f8ce5/32.png) [@enduro](https://www.ruby-forum.com/u/enduro)\
**Post date:** [December 11, 2008, 9:33am UTC](https://www.ruby-forum.com/t/status-info-like-rc-status/155214/3 "2008-12-11T09:33:52Z")

</div>

> I have no idea what rc.status outputs (my Linux doesn’t have it) but  
> chances are that you can pretty easily format your desired output via  
> printf or sprintf. What exactly do you need?
> 
> Kind regards
> 
> robert

I’m sorry for my rather unhelpful description. The functionality I’m  
looking for should support me in outputting status info of certain steps  
in a script (“done”, “failed”) as well as loading bars, etc. to console.

I asked the question because I considered these to be often required and  
therefore have been neatly packed up in some kind of library for better  
usage. I could also write those all by myself using the mentioned  
printf/sprintf functions, of course.

Sven
