Hi Joseph,
You should use the /etc/syslog.conf : By default you have *.info /dev/console *.info /etc/messages With the first line, it stands that every message is displayed on the console. So you can set up syslog.conf to have any kind of info redirected to a file.
Kind regards,
Michel Geldenhuys Danone Belgium SA/NV +32 2 776 68 23 michel.geldenhuys@danone.com
Joseph Bishop jbishop@west.net Sent by: owner-toasters@mathworks.com 28/08/2003 15:24
To: toasters@mathworks.com cc: Subject: redirection of console output to file?
Hello,
I know this can be done; I can't find it in my notes. Does anyone know how to redirect console output to a file?
Thanks in advance,
Joe
Joseph Bishop jbishop@west.net asks:
I know this can be done; I can't find it in my notes. Does anyone know how to redirect console output to a file?
and Michel Geldenhuys michel.geldenhuys@danone.com replies < < You should use the /etc/syslog.conf : < By default you have < *.info /dev/console < *.info /etc/messages < With the first line, it stands that every message is displayed on the < console. < So you can set up syslog.conf to have any kind of info redirected to a < file.
This only copes with syslog'd messages to the console: sometimes one wants to have a copy of the output of commands entered at the console logged to a file. /etc/log/auditlog is useful for that purpose (set "options auditlog.enable on" if it isn't already), although the rules for when things get included in it sometimes seem a bit hit and miss.
For example, I could do without a complete copy of the output generated by "rsh [filer] quota report" appearing there (it's rather a lot in our configuration), while it would be useful if the output generated by "ndmpcopy" run for the console was copied there (it isn't).
Chris Thompson Email: cet1@cam.ac.uk