ok, this is just cosmetics but...
My Script acts similar to init (or rc depending on the UNIX), it executes a Script and prints out a message about the return code
The output should look like this:
2008-11-18 11:53:27 Starting Application Blahblah ............. FAILED
2008-11-18 11:54:03 Starting Daemon Whatelse .................. OK
but it looks like this (no padding at all):
2008-11-18 11:53:27 Starting Application Blahblah FAILED
2008-11-18 11:54:03 Starting Daemon Whatelse OK
but it looks like this (padding icharacter is a blank):
2008-11-18 11:53:27 Starting Application Blahblah FAILED
2008-11-18 11:54:03 Starting Daemon Whatelse OK
Well, I have som experience in writing C/C++ code, I could write my own function, BUT
Is there an easy way to use printf, awk or something to set padding to eg a dot? (I am on a hp-ux 11.23 box if this is an issue)
Best Regards, Franz
--
System Manager (Solaris, HP-UX, Linux, some networking, some SAN)
My Script acts similar to init (or rc depending on the UNIX), it executes a Script and prints out a message about the return code
The output should look like this:
2008-11-18 11:53:27 Starting Application Blahblah ............. FAILED
2008-11-18 11:54:03 Starting Daemon Whatelse .................. OK
but it looks like this (no padding at all):
2008-11-18 11:53:27 Starting Application Blahblah FAILED
2008-11-18 11:54:03 Starting Daemon Whatelse OK
but it looks like this (padding icharacter is a blank):
2008-11-18 11:53:27 Starting Application Blahblah FAILED
2008-11-18 11:54:03 Starting Daemon Whatelse OK
Well, I have som experience in writing C/C++ code, I could write my own function, BUT
Is there an easy way to use printf, awk or something to set padding to eg a dot? (I am on a hp-ux 11.23 box if this is an issue)
Best Regards, Franz
--
System Manager (Solaris, HP-UX, Linux, some networking, some SAN)