how to write a bash script like the ones used in init.d?

Posted by Neuquino on Stack Overflow See other posts from Stack Overflow or by Neuquino
Published on 2010-03-22T18:51:25Z Indexed on 2010/03/22 19:01 UTC
Read the original article Hit count: 341

Filed under:
|

I have to write a bash script that makes lot of things. I'd like to print messages as nice as init scripts do. For example:

 Doing A... [OK]  
 Doing B... [ERROR]  
 ....

Do you know any way to make this?

Thanks in advance

© Stack Overflow or respective owner

Related posts about bash

Related posts about scripting