Forum: Ruby status info like rc.status

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5ecf5c93f2a0e3bd93026dcebf3dd086?d=identicon&s=25 Sven S. (kioo)
on 2008-12-09 14:11
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.
E0d864d9677f3c1482a20152b7cac0e2?d=identicon&s=25 Robert Klemme (Guest)
on 2008-12-10 17:01
(Received via mailing list)
2008/12/9 Sven S. <kioo@intothespirit.com>:
> 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
5ecf5c93f2a0e3bd93026dcebf3dd086?d=identicon&s=25 Sven S. (kioo)
on 2008-12-11 09:33
> 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
This topic is locked and can not be replied to.