RCS file: replace.c,v
Working file: replace.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4; selected revisions: 4
description:
include all the header file which are required
then take a file descriptor and a char type varible name as arry buff
then give the open command for a file
print the fd which is return by open commnd
—————————-
revision 1.4 locked by: root;
date: 2015/02/26 14:54:00; author: root; state: Exp; lines: +3 -3
here print the parent is active
the after the child is active
after that use the execl command for replacing the other file
and terminate the program
—————————-
revision 1.3
date: 2015/02/26 14:52:26; author: root; state: Exp; lines: +3 -2
put the switch case statement
—————————-
revision 1.2
date: 2015/02/26 14:47:51; author: root; state: Exp; lines: +2 -2
here we capture the fork into a varible
—————————-
revision 1.1
date: 2015/02/26 14:41:44; author: root; state: Exp;
Initial revision