Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Bauer, Bobby (NIH/CIT) [E]
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.

Thanks
Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474
 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Veencamp, Jonathon D.
Have you looked at the logger command? It allows user use of the syslog service 
with control over severity and facility of the messages.

Good luck!
Jon

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Bauer, 
Bobby (NIH/CIT) [E]
Sent: Monday, July 01, 2013 1:00 PM
To: LINUX-390@VM.MARIST.EDU
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.

Thanks
Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/



The information contained in this e-mail message is intended only for the 
personal and confidential use of the designated recipient(s) named above. This 
message may be an attorney-client or work product communication which is 
privileged and confidential. It may also contain protected health information 
that is protected by federal law. If you have received this communication in 
error, please notify us immediately by telephone and destroy (shred) the 
original message and all attachments. Any review, dissemination, distribution 
or copying of this message by any person other than the intended recipient(s) 
or their authorized agents is strictly prohibited. Thank you.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Bauer, Bobby (NIH/CIT) [E]
I did not know of the logger command. The man page and a quick test. Looks like 
just what we need, thanks

Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474


-Original Message-
From: Veencamp, Jonathon D. [mailto:jdveenc...@fedins.com] 
Sent: Monday, July 01, 2013 2:02 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Putting messages in dmesg or /var/log/messages

Have you looked at the logger command? It allows user use of the syslog service 
with control over severity and facility of the messages.

Good luck!
Jon

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Bauer, 
Bobby (NIH/CIT) [E]
Sent: Monday, July 01, 2013 1:00 PM
To: LINUX-390@VM.MARIST.EDU
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.

Thanks
Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474


--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu 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/



The information contained in this e-mail message is intended only for the 
personal and confidential use of the designated recipient(s) named above. This 
message may be an attorney-client or work product communication which is 
privileged and confidential. It may also contain protected health information 
that is protected by federal law. If you have received this communication in 
error, please notify us immediately by telephone and destroy (shred) the 
original message and all attachments. Any review, dissemination, distribution 
or copying of this message by any person other than the intended recipient(s) 
or their authorized agents is strictly prohibited. Thank you.

--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu 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/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread David Boyes
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:LINUX-390@VM.MARIST.EDU] On Behalf Of
> Bauer, Bobby (NIH/CIT) [E]
> Sent: Monday, July 01, 2013 2:00 PM
> To: LINUX-390@VM.MARIST.EDU
> 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 lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Rick Troth
Yeah ... 'logger' is pretty handy.  Is available on other systems too.

Following what David said, you will want the SYSLOG service up and
running for 'logger' to have any effect.  (According to design, the
logged traffic would drop into oblivion if 'syslogd' is not running,
so as to avoid lock-up or other bad things.)

The dependency relationships are traditionally in comments at the
start of each INIT script.  'systemd' changes the game.  I won't waste
time discussing that unless you are already suffering under its
weight.

-- R; <><





On Mon, Jul 1, 2013 at 2:05 PM, Bauer, Bobby (NIH/CIT) [E]
 wrote:
> I did not know of the logger command. The man page and a quick test. Looks 
> like just what we need, thanks
>
> Bobby Bauer
> Center for Information Technology
> National Institutes of Health
> Bethesda, MD 20892-5628
> 301-594-7474
>
>
> -Original Message-
> From: Veencamp, Jonathon D. [mailto:jdveenc...@fedins.com]
> Sent: Monday, July 01, 2013 2:02 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Re: Putting messages in dmesg or /var/log/messages
>
> Have you looked at the logger command? It allows user use of the syslog 
> service with control over severity and facility of the messages.
>
> Good luck!
> Jon
>
> -Original Message-
> From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Bauer, 
> Bobby (NIH/CIT) [E]
> Sent: Monday, July 01, 2013 1:00 PM
> To: LINUX-390@VM.MARIST.EDU
> 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.
>
> Thanks
> Bobby Bauer
> Center for Information Technology
> National Institutes of Health
> Bethesda, MD 20892-5628
> 301-594-7474
>
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send email 
> to lists...@vm.marist.edu 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/
>
> 
>
> The information contained in this e-mail message is intended only for the 
> personal and confidential use of the designated recipient(s) named above. 
> This message may be an attorney-client or work product communication which is 
> privileged and confidential. It may also contain protected health information 
> that is protected by federal law. If you have received this communication in 
> error, please notify us immediately by telephone and destroy (shred) the 
> original message and all attachments. Any review, dissemination, distribution 
> or copying of this message by any person other than the intended recipient(s) 
> or their authorized agents is strictly prohibited. Thank you.
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send email 
> to lists...@vm.marist.edu 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/
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu 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/



-- 
-- R;   <><

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Bauer, Bobby (NIH/CIT) [E]
Logger from rc.local seems to be working put I'll look into an init script. 
Never written one of those. Time to get out the books.

Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474


-Original Message-
From: Rick Troth [mailto:r...@casita.net] 
Sent: Monday, July 01, 2013 2:47 PM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Putting messages in dmesg or /var/log/messages

Yeah ... 'logger' is pretty handy.  Is available on other systems too.

Following what David said, you will want the SYSLOG service up and running for 
'logger' to have any effect.  (According to design, the logged traffic would 
drop into oblivion if 'syslogd' is not running, so as to avoid lock-up or other 
bad things.)

The dependency relationships are traditionally in comments at the start of each 
INIT script.  'systemd' changes the game.  I won't waste time discussing that 
unless you are already suffering under its weight.

-- R; <><





On Mon, Jul 1, 2013 at 2:05 PM, Bauer, Bobby (NIH/CIT) [E] 
 wrote:
> I did not know of the logger command. The man page and a quick test. 
> Looks like just what we need, thanks
>
> Bobby Bauer
> Center for Information Technology
> National Institutes of Health
> Bethesda, MD 20892-5628
> 301-594-7474
>
>
> -Original Message-
> From: Veencamp, Jonathon D. [mailto:jdveenc...@fedins.com]
> Sent: Monday, July 01, 2013 2:02 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Re: Putting messages in dmesg or /var/log/messages
>
> Have you looked at the logger command? It allows user use of the syslog 
> service with control over severity and facility of the messages.
>
> Good luck!
> Jon
>
> -Original Message-
> From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of 
> Bauer, Bobby (NIH/CIT) [E]
> Sent: Monday, July 01, 2013 1:00 PM
> To: LINUX-390@VM.MARIST.EDU
> 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.
>
> Thanks
> Bobby Bauer
> Center for Information Technology
> National Institutes of Health
> Bethesda, MD 20892-5628
> 301-594-7474
>
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to lists...@vm.marist.edu 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/
>
> 
>
> The information contained in this e-mail message is intended only for the 
> personal and confidential use of the designated recipient(s) named above. 
> This message may be an attorney-client or work product communication which is 
> privileged and confidential. It may also contain protected health information 
> that is protected by federal law. If you have received this communication in 
> error, please notify us immediately by telephone and destroy (shred) the 
> original message and all attachments. Any review, dissemination, distribution 
> or copying of this message by any person other than the intended recipient(s) 
> or their authorized agents is strictly prohibited. Thank you.
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to lists...@vm.marist.edu 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/
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to lists...@vm.marist.edu 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/



-- 
-- R;   <><

--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu 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/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.mari

Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread David Boyes
> The dependency relationships are traditionally in comments at the start of
> each INIT script.  'systemd' changes the game.  I won't waste time
> discussing that unless you are already suffering under its weight.

There are easy tools for scarfing up init script dependencies into systemd. 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Writing article for Destination z on IBM Academic Initiative

2013-07-01 Thread Gabe Goldberg

Anyone here have experience with it?
http://www-03.ibm.com/ibm/university/academic/pub/page/academic_initiative
http://www-03.ibm.com/ibm/university/academic/pub/page/systemz

Have you taken classes. entered competitions, taught classes, hired
graduates, been to a local Academic Initiative meeting (usually include
IBMers, local industry, local educational institutions), etc.

Any other comments?

Thanks; please copy replies to me directly so they're not buried in list
digests...

--
Gabriel Goldberg, Computers and Publishing, Inc.   g...@gabegold.com
3401 Silver Maple Place, Falls Church, VA 22042   (703) 204-0433
LinkedIn: http://www.linkedin.com/in/gabegoldTwitter: GabeG0

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread David Boyes
> Logger from rc.local seems to be working put I'll look into an init script.
> Never written one of those. Time to get out the books.

It's pretty easy. Copy one of the existing ones (nfsd is a good one to start 
with -- it has dependencies already, so you can see how they work). 
For what you want to do, you just need to implement the "start" method, and 
mark it as dependent on syslog and network. 

You can just stub out all the other methods (stop, status, etc). 

Rc.local works, but having each one of these kinds of things separate makes 
system management a lot easier. The really nice part about making things like 
this separate scripts is that you can individually add or remove them w/o 
editing rc.local manually. You can also version-control them, and mass 
distribute them with yum rather than having to worry about stuff being outdated 
or how to edit a file. 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Rodger Donaldson
On Mon, Jul 01, 2013 at 06:05:47PM +, Bauer, Bobby (NIH/CIT) [E] wrote:

> I did not know of the logger command. The man page and a quick
> test. Looks like just what we need, thanks

If either is available on your distro, syslog-ng and rsyslogd both
include a file agent that can be configured to slurp up arbitary files
and run them through the syslog facility; this has the benefit that
restarting and tracking logs as they're rotated is all taken care of
for you.

--
Rodger Donaldsonrodg...@diaspora.gen.nz

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


LARS Batch package restore

2013-07-01 Thread David Boyes
A little while ago, someone was looking for a decent CMS batch system. The 
Purdue LARS batch code (source, docs and modules) is available from 
http://download.sinenomine.net/cmsbatch.
I think I got all the pieces, but let me know if there are pieces missing. 

I don't think you need the CP mods any longer, but some tests would be in 
order. The docs should be current for that code. 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: LARS Batch package restore

2013-07-01 Thread Mike Noel
Thanks Dave, I think the 'someone' might have been me, at least I emailed
you reporting a bad link to this code on your site . Unfortunately I don't
recall exactly why I was interested... Mike



On Mon, Jul 1, 2013 at 2:06 PM, David Boyes  wrote:

> A little while ago, someone was looking for a decent CMS batch system. The
> Purdue LARS batch code (source, docs and modules) is available from
> http://download.sinenomine.net/cmsbatch.
> I think I got all the pieces, but let me know if there are pieces missing.
>
> I don't think you need the CP mods any longer, but some tests would be in
> order. The docs should be current for that code.
>
> --
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu 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/
>

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: LARS Batch package restore

2013-07-01 Thread David Boyes
> Thanks Dave, I think the 'someone' might have been me, at least I emailed
> you reporting a bad link to this code on your site . Unfortunately I don't 
> recall
> exactly why I was interested... Mike

I think you were going to use it to submit startup tasks during startup. 

I apologize for the delay. With the fun of getting VMworkshop done, it's taken 
far too long. 

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/


Re: Putting messages in dmesg or /var/log/messages

2013-07-01 Thread Srivastava, Sagar
Logger is the command.

Sagar 



-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of
Bauer, Bobby (NIH/CIT) [E]
Sent: Monday, July 01, 2013 2:00 PM
To: LINUX-390@VM.MARIST.EDU
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.

Thanks
Bobby Bauer
Center for Information Technology
National Institutes of Health
Bethesda, MD 20892-5628
301-594-7474
 

--
For LINUX-390 subscribe / signoff / archive access instructions, send
email to lists...@vm.marist.edu 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/

This email is intended for the recipient only.  If you are not the intended 
recipient please disregard, and do not use the information for any purpose.


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu 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/