05-19-2012
9 More Discussions You Might Find Interesting
1. Programming
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:
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. Programming
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
4. UNIX for Advanced & Expert Users
Hi,
I am thinking about writing a log daemon for a multi-processed ksh application (yes - I know that high-level language would be a better option).
My question is as follows:
If many processes (many scripts) will try writing to a single log file:
print "message" > common.log
Will it work or... (2 Replies)
Discussion started by: adderek
2 Replies
5. UNIX for Dummies Questions & Answers
i need to develop application which continuously wait for a request from multiple host and on receiving a request on that need to create a log file and after 30 mins delete that file
I am new to socket programming so could anyone help me on this.
How to continuously listen for a request
How... (0 Replies)
Discussion started by: tryit
0 Replies
6. Linux
tcp communication application
i have an application which run in
1)
while()
{in
}
and listens for some request
When a request comes to create a file(containing some data fetch from somewhere)
but i also want to start some timer that after 10/20 min delete that file
But i don't know how... (0 Replies)
Discussion started by: tryit
0 Replies
7. Programming
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
8. Shell Programming and Scripting
Dear All,
I need a help.
i have an mapped drive application. I want to start this application using cron. I have downloaded cron setup from the below link:
www.kalab.com/freeware/cron/cron.htm
And it crontab file works fine.
But if i want to start an application. Then process... (2 Replies)
Discussion started by: vasanth.vadalur
2 Replies
9. UNIX for Advanced & Expert Users
Hi All,
I am facing problem in launching a application with the help of a daemon process. Actually the application is based on command line that reads various commands for controlling the application from the console and accordingly executes those commands. The application always interact with... (3 Replies)
Discussion started by: gopallinux
3 Replies
LEARN ABOUT HPUX
tt_prequest_create
tt_prequest_create(library call) tt_prequest_create(library call)
NAME
tt_prequest_create -- create a procedure request message
SYNOPSIS
#include <Tt/tt_c.h>
Tt_message tt_prequest_create(
Tt_scope scope,
const char *op);
DESCRIPTION
The tt_prequest_create function creates a message. The created message created contains the following:
Tt_address = TT_PROCEDURE Tt_class = TT_REQUEST
The application can use the returned handle to add arguments and other attributes, and to send the message.
The scope argument determines which processes are eligible to receive the message. The following values are defined:
TT_SESSION
All processes joined to the indicated session are eligible.
TT_FILE All processes joined to the indicated file are eligible.
TT_BOTH All processes joined to either indicated file or the indicated session are eligible.
TT_FILE_IN_SESSION
All processes joined to both the indicated file and the indicated session are eligible.
The op argument is the operation to be performed by the receiving process.
RETURN VALUE
Upon successful completion, the tt_prequest_create function returns the unique handle that identifies this message. The application can
use tt_ptr_error(3) to extract one of the following Tt_status values from the returned handle:
TT_OK The operation completed successfully.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
TT_ERR_PROCID
The specified process identifier is out of date or invalid.
APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API.
If the ToolTalk service is unable to create a message when requested, tt_prequest_create returns an invalid handle. When the application
attempts to use this handle with another ToolTalk function, the ToolTalk service will return TT_ERR_POINTER.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3).
tt_prequest_create(library call)