TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [TCLUG:3621] Logfile?



You could use 'logger'. 
$ logger "your text goes here"

It generates an entry in /var/adm/messages with date&time, hostname, user,
etc. You can use additional flags also. See 'man logger'

Nishi
--People who live in windowed environments shouldn't cast pointers--
mailto:nishikant.x.kapoor@nspco.com   http://www.c3ipros.com/nkapoor
-----------------------------------~~~------------------------------

> -----Original Message-----
> From:	Scott K. Johnson [SMTP:skj@visi.com]
> Sent:	Thursday, January 21, 1999 4:04 PM
> To:	TCLUG
> Subject:	[TCLUG:3621] Logfile?
> 
> Hello all, 
> 
> Is it possible for me to generate entries into a specified logfile?
> 
> Like a script that executes, and generates entries into /var/adm/messages?
> 
> Thanks!
> 
> Scott K. Johnson
> skj@visi.com
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com