operating system

In C programming

Part 1

Write a program where a child is created to execute command that tells you the date and time in

Unix. Use execl(...) . Note: you need to specify the full path of the file name that gives you date and

time information. Announce the successful forking of child process by displaying its PID.

Part 2

Write a program where a child is created to execute a command that shows all files (including hidden files)

in a directory with information such as permissions, owner, size, and when last modified. Use execvp(...) .

Announce the successful forking of child process by displaying its PID.

Part 3

[Step 1] Process_P1.c:

Create two files namely, [login to view URL] and [login to view URL] with read, write and execute


[Step 2] Process_P2.c: Copy the contents of [login to view URL] into [login to view URL] and [login to view URL] as

per the following procedure:

1. Read the next 50 characters from [login to view URL] , and among those characters write chars 5 and 8 only

to [login to view URL]

2. Then the next 100 characters are read from [login to view URL] and written in destination2.txt.

Once you’re done with the successful creation of executables for the above two steps do the following:

Write a C program and call it Parent_Process.c . Execute the files as per the following procedure using

execv system call. Use sleep system calls to introduce delays.

[Step 3] Fork a child process, say Child 1 and execute Process_P1 . This will create two destination files

according to Step 1.

[Step 4] After Child 1 finishes its execution, fork another child process, say Child 2 and execute

Process_P2 that accomplishes the procedure described in Step 2.

Submission Instructions: Save your responses to part 1, 2, and 3 in a single folder. Make sure your

program compiles and run without any errors. Note : Use the same [login to view URL] given for Lab 1. Your

response to Part 3 should contain 3 C files, namely, Process_P1.c, Process_P2.c, and Parent_Process.c

Kemahiran: Pengaturcaraan C, Computer Science

Lihat lagi: programs using fork exec system calls, i want this sentences to rewrite in english this report relates to the claim lodged by the insured messrs nosak distilleries lim, write a short formal report to your chief executive officer identifying the security lapses and suggesting ways in which this co, any company advertising on how to print recharge card and web design in umuahia this month, hello please i would need your financial expertise in handling this situation the company i work for as a financial controller h, india it companies operating in singapore, i want to fix cell in aaaaa1234a this formate in excel, php developer walkins in hyderabad this week, Write an interactive program in C language to create an application program for your study centre. This application should be ha, http://mygreatdeal.in/ like this site developed, dot net walkins in chennai this week for experienced, walk in interview in chennai this week for dot net, walkin for tech support in bangalore this week, foreign companies operating in australia, conference in houston this week, events in kimberley this weekend, what's on in athens this week, what's on in krakow this weekend, events in singapore this weekend, events in sydney this month

Tentang Majikan:
( 3 ulasan ) South Ozone Park, United States

ID Projek: #28212509

5 pekerja bebas membida secara purata $50 untuk pekerjaan ini


I am very proficient in c/c++. I have 17 years c/c++ developing experience now, and have worked for more than 10 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environm Lagi

$80 USD dalam 2 hari
(139 Ulasan)

Hello Dear, I have developed good projects on Linux in C, you can check it on my profile. I can help you with this. Let's discuss it. Thanks.

$40 USD dalam 4 hari
(19 Ulasan)

Hi I am specialist in operating system. I work on Linux for many project. I reed your requirements and I am sure that I will be easily complete this on time. If you are interested I will sent u my work that I have alre Lagi

$16 USD dalam 3 hari
(4 Ulasan)

hey....hi. hope you are doing good. i have read your job description and I am confident enough to complete the above mentioned 4 programs. Let me know by when do you need it completed. Thanks and Regards, Nerd.

$45 USD dalam 2 hari
(0 Ulasan)

Hi I'm a highly proficient IT specialist with proven experience in Wireless controller Firmware Development. ►Worked on SPC5 Microcontroller (mcu) and SOC TDA2x chipset (2 Arm cortex A15) Firmware development ► Implem Lagi

$67 USD dalam 7 hari
(0 Ulasan)