Sponsored Content
Top Forums UNIX for Advanced & Expert Users Inter-process communication:pipes,doors,etc. Post 302159800 by adderek on Friday 18th of January 2008 04:39:29 PM
Old 01-18-2008
Maybe I will give you some more details.
I was to take code created by someone else. For logging from several simultaneous processes they are using many log files and from time to time they merge them all into one.
Until now I was thinking that when you are doing:
Code:
print "some even quite long message" >> file.txt

from several processes at once, then it would not interfere.
But they told me that they were receiving logs like:
"log number one
log numbelog number threer two
log number four"
Im ,y understanding this should never occur. But if this is the case then FIFO pseudo-device would be the best choice.
Anyway - I asked because according to my knowledge situation described by the other guy should not occur unless he is doing something like:
Code:
print "log number " >>file.txt
print "one" >>file.txt

 

10 More Discussions You Might Find Interesting

1. Programming

Inter Process Communication

unix IPC i would like to know the method of usage of semaphores on shared memory segments the topic seems very difficult to understand mainly when difrent proceses communicate instantly and how do i avaoid deadlock situation (2 Replies)
Discussion started by: kamathanil
2 Replies

2. Programming

signal in process communication

signal in process communication: I 'm a example in sun_unix that signal in process communication It's here down but I only have freebsd in my machine. how can i do the same in freebsd eg: #include <stdio.h> #include <signal.h> #include <unistd.h> int main( void ){ void... (2 Replies)
Discussion started by: a9711
2 Replies

3. UNIX for Advanced & Expert Users

Interprocess communication using pipes and fork

I'm very worried. I have an assignment that is due in 3 weeks, and also tute exercises which I can't seem to understand and work out. Okay, the question: The parent process will convert the command arguments into integer values using atoi() and store them into an integer array which you will... (2 Replies)
Discussion started by: scmay
2 Replies

4. HP-UX

Inter Process File Handling Problem

Hi All, i am running a oracle procedure which writes a file . The same file is picked up by another script which runs in a cron after every 5 minutes. Now the problem is that sometimes my script picks up a file while the procedure is still writing data in the file. is there is any way i... (4 Replies)
Discussion started by: saurabhjain
4 Replies

5. Programming

Problem with signals - 3 process communication

Hello, I would like to ask you for a little help with program I'm working on. I have problems with signals and synchronizing processes (I'm quite new to this part of programming). Process "parent" creates new child process "child1" and this process creates new child process "child2". The... (2 Replies)
Discussion started by: Nightwright
2 Replies

6. Programming

C program using IPC (inter process communication)

i want to write a C chat program that communicates over IPC(inter process communication), that could be run using 2 seperate terminal windows within the same computer. so that wat u type in one terminal window , should appear on the other and vice versa... could some one please help me with the... (2 Replies)
Discussion started by: localp
2 Replies

7. Programming

help with write-read locks inter-process

I need help!Many Thanks! Now,I try to manage the shared memory inter-process . Inevitably,I have to deal with the synchronous. I know the pthread_rwlock in posix,and I compile ,then run successfully in Red Hat Enterprise 4. I have a doubt about whether the Posix supports the system such as... (1 Reply)
Discussion started by: weizh
1 Replies

8. OS X (Apple)

Inter-shell communication

If I open two bash shells and telnet from Shell 2 to a remote server (on the Net), is there a way to direct input from Shell 1 to the telnet shell? The telnet shell is a limited environment with a specific command set. I want to direct commands from Shell 1 and, if possible, put 1-second... (2 Replies)
Discussion started by: xinUoG
2 Replies

9. Programming

please help a problem in client-server ipc message 2 pipes communication simple example

I want to have a message send & receive through 2 half-duplex pipes Flow of data top half pipe stdin--->parent(client) fd1--->pipe1-->child(server) fd1 bottom half pipe child(server) fd2---->pipe2--->parent(client) fd2--->stdout I need to have boundary structed message... (1 Reply)
Discussion started by: ouou
1 Replies

10. Programming

Application with communication between process

Hello I would like to create an application with communication between processes, application tightly coupled, have you please an idea about an API or a tool that allows me to generate such application? Thank you so much (11 Replies)
Discussion started by: chercheur857
11 Replies
diaglogd(1M)															      diaglogd(1M)

NAME
diaglogd - Support Tools Manager logging daemon SYNOPSIS
/usr/sbin/stm/uut/bin/sys/diaglogd DESCRIPTION
The Support Tools Manager (STM) uses a logging daemon ( diaglogd ) to read diagnostic events from the kernel via diag2 (diagnostic pseudo driver) and logs them in the system log files. diaglogd is launched automatically at boot by the STM daemon diagmond. The STM User Interface, xstm , mstm , or cstm , Daemon commands can also be used to launch the daemon as well as shut it down and view the daemon's activity log. The log files created by diaglogd can be viewed using the STM utility logtool. Application Usage This daemon will be deprecated on new server models. Please use System Management Homepage (see hpsmh(1M)). WARNINGS
The following message will appear on the system console when the diagnostic logging facility determines that the I/O subsystem has started logging excessive I/O errors. This message will appear only once and I/O errors will be lost until the diagnostic subsystem can recover from this condition. DIAGNOSTIC SYSTEM WARNING: The diagnostic logging facility has started receiving excessive errors from the I/O subsystem. I/O error entries will be lost until the cause of the excessive I/O logging is corrected. If the diaglogd daemon is not active, use the Daemon Startup command in stm to start it. If the diaglogd daemon is active, use the logtool utility in stm to determine which I/O subsystem is logging excessive errors. The following message will appear on the system console when the cause of the excessive I/O error logging is corrected. The total number of I/O errors that were dropped will be placed in "XX". DIAGNOSTIC SYSTEM WARNING: The diagnostic logging facility is no longer receiving excessive errors from the I/O subsystem. XX I/O error entries were lost. OTHER FILES
/dev/diag/diag0 - Series 800 Diagnostic pseudo driver device file /dev/diag/diag1 - Series 700 Diagnostic pseudo driver device file /dev/diag/diag2 - Series 700/800 Diagnostic pseudo driver device file /var/stm/logs/sys/activity_log_diaglogd - Activity log of diaglogd /var/stm/logs/os/log##.raw - OS system log files /var/stm/logs/os/log##.raw.cur - Current OS system log file /var/stm/config/sys/diaglogd.cfg - Diagmond configuration /var/stm/data/daemon_list - List of daemons installed /var/stm/data/key_file - OS resource key file COPYRIGHT
(c) Copyright 1995, Hewlett-Packard Company ORIGIN
diaglogd was developed by Hewlett-Packard Company. SEE ALSO
stm(1M), diagmond(1M) diaglogd(1M)
All times are GMT -4. The time now is 08:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy