EmbLogic's Blog

Inter Process Communication using files:

RCS file: header.h,v
Working file: header.h
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
this is header file
this file includes the standard libraries required in the program.
—————————-
revision 1.1 locked by: root;
date: 2015/02/27 04:43:41; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: replace1.c,v
Working file: replace1.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
this is main file
in this program we have initiated a call using execl function
—————————-
revision 1.4 locked by: root;
date: 2015/02/27 15:27:16; author: root; state: Exp; lines: +1 -1
first converting the integer to the character type
since execl takes char* as a argument.
—————————-
revision 1.3
date: 2015/02/27 15:25:30; author: root; state: Exp; lines: +2 -3
sending data to the new program initiated by execl
—————————-
revision 1.2
date: 2015/02/27 05:27:27; author: root; state: Exp; lines: +5 -5
reading back the values send by execl initiated program
output is displayed.
—————————-
revision 1.1
date: 2015/02/27 04:43:41; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: new1.c,v
Working file: new1.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
this is called by execl
—————————-
revision 1.3 locked by: root;
date: 2015/02/27 05:27:31; author: root; state: Exp; lines: +1 -1
here we have used command line arguments to collect the char* values
then these values converted to integer type using atoi()
—————————-
revision 1.2
date: 2015/02/27 04:58:29; author: root; state: Exp; lines: +1 -1
reading the values transmitted by the main program
and writting the results back to the main program.
—————————-
revision 1.1
date: 2015/02/27 04:43:41; author: root; state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>