- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- messages to syslog.log
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 05:31 AM
11-06-2001 05:31 AM
messages to syslog.log
I??ve a program who send msg??s to /dev/syscon (I don??t know how and I can??t rewrite the program), and I want to catch this msg??s to syslog.log.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 05:48 AM
11-06-2001 05:48 AM
Re: messages to syslog.log
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 06:52 AM
11-06-2001 06:52 AM
Re: messages to syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:12 AM
11-06-2001 07:12 AM
Re: messages to syslog.log
ln -s /var/adm/syslog.log whateverlog
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:24 AM
11-06-2001 07:24 AM
Re: messages to syslog.log
*.debug /var/adm/syslog/syslog.log
so, I understand all msg??s go to syslog.log, but must these msg??s be sent through syslog routines?
echo "HELLO" > /dev/syscon
don??t send the msg to syslog.log
but
logger "HELLO"
send twice the same msg to syslog.log
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:49 AM
11-06-2001 07:49 AM
Re: messages to syslog.log
If it logs to /dev/console or syscon is linked to console, and you have a (CDE/VUE) GUI, you can use a hpterm(1) window with the "-C" option to catch (/dev/console) console messages.
Alternatively you can try to use a binary editor on the executable file to change /dev/syscon to some other, equally 'long' name. A simple binary editor is "vis -n", your favorite *text* editor (vi(1)) and "inv -n".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 08:41 AM
11-06-2001 08:41 AM
Re: messages to syslog.log
/dev/syscon is console,
as the list on it shows below.
****************
crw--w--w- 1 root sys 0 0x000000 Nov 5 11:07 /dev/console
crw--w--w- 2 bin bin 0 0x000000 Jul 31 14:57 /dev/syscon
*****************
So the messages are going
to console. If you want
them to go to syslog.log file,
then the change has to be
made in application to
redirect the messages to
syslog file (append) .
Is this a uSer application
or a system-related application?
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 03:45 PM
11-06-2001 03:45 PM
Re: messages to syslog.log
strings your_program | grep /dev. See man strings for options.
If you find /dev/syscon or /dev/console use adb to change it to /dev/null or a pipe file you can manage.
JRF seems to be the master of adb, he can help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 11:51 PM
11-06-2001 11:51 PM
Re: messages to syslog.log
See your own ll(1) output. The link count for /dev/syscon is 2, while the link count for /dev/console is 1. This means that they are *not* (hard) linked. You can see this by doing a "ll -i" which shows that the inode numbers are different. (Also the different UID/GID/timestamp show that they are not (hard) linked.)
However that they are not (hard) *linked* does not neccessarily mean that they are not *pointing* to the same physical device.
See the init(1M) manual page on how /dev/syscon (the *logical* system console) and /dev/systty (the *physical* system console) interact.
The bottom line in that in *most* cases /dev/console, /dev/syscon and /dev/systty point to the same physical device, but not in *all* cases.