Use "logger" and run the script from a separate init script with a dependency 
on the syslog startup script. 

Putting your message into a separate script will let you install it as an RPM 
and let init rearrange it as necessary. Rc.local is very early in the startup, 
so you can't use syslog until it's up. 

> -----Original Message-----
> From: Linux on 390 Port [mailto:[email protected]] On Behalf Of
> Bauer, Bobby (NIH/CIT) [E]
> Sent: Monday, July 01, 2013 2:00 PM
> To: [email protected]
> Subject: Putting messages in dmesg or /var/log/messages
> 
> Is there some way I can put messages in either dmesg or
> /var/log/messages. At boot time we run a script from rc.local and I'd like to
> record it. I tried an echo command, that didn't work. Any suggestions would
> be appreciated.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to