We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

CS-604 Assignment No#1 Due Date: 12-05-2016 .................... from 1st to 7th lectures..

Assignment Objective:

  • To give you hand on experience of Ubuntu though VMware
  • To know about system calls like fork, wait, and exec
  • How to work on Ubuntu terminal
  • How to compile a program using gcc compiler and execute a program through terminal

Uploading instructions:

  • Your assignment must be in .doc format (Any other formats like scan images, PDF, bmp, etc will not be accepted).
  • Save your assignment with your ID (e.g. bc020200786.doc).
  • No assignment will be accepted through email.

Rules for Marking:


It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupted.
  • Your assignment is copied from internet, handouts or from any other student

      (Strict disciplinary action will be taken in this case).



Write a C program in any editor of Linux in which you have to create one child using fork system call. In child process, message will be displayed to take input for two tasks through Switch or If else statements.


  • One for execution of ping command for any website i.e ping yahoo.com using the execlp() system call.
  • Second to create any directory using mkdir command i.e mkdir VU


Parent process should wait until child finishes its execution through Wait() call and display a message “Well done Kid”.

Finally Both Parent and Child ID should be displayed.


You have to solve the assignment in the following way


  • Save the program in your student id directory which can be created anywhere i.e Desktop
  • Attach only two screen shots i.e one for ping and other for mkdir
  • Also copy the code in the text format in the same word file in which screen shot attached.


Sample Program output:

Screen Shot 1:

Screen Shot 2:

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..

See Your Saved Posts Timeline

Views: 23142


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)


Replies to This Discussion

plz mujhy bi dy do screen short plz mari id bc120401106 ha plz 

Abrar Brother....cheating itself was a big task actually....first the installation of softwares than to compile the code successfully in terminal...that was all tiring to try again and again...and at-last that worked....with our own hardwork...so u can't say it completely a cheating...see how the students are still facing problems after getting the ready made code...sooo the main thing was about to download softwares properly...

but no doubt ur code helped a lot in completion of the assignment....JAZAKALLAH KHAIR for that brother

mra program complole ho rha ha but ping ni ho rha ha

when ur code gets compile.... try this...
write .... ls then enter....it will show ur files there...than write ./xxxx  means ./ daal k file name press enter,....that will ask whether to ping or make directory by pressing 1 or 2

mujhay code de dain plz


help sister plsss extended date h aj ap bana k dy dijye mjhy abi

tell me this problem solution plz

chek for updates kar k update kro ya phir close kar do

ye error Q aa rha hy?

ccg nai likhna gcc likhna hai apni comd check krain carefully

yar koi to dy 2 solution

 coding kon c dalni h


Latest Activity

ùήķήόώή şόùĻ replied to ùήķήόώή şόùĻ's discussion Dard ..
28 minutes ago
+"illegal weapon"++ posted a discussion
3 hours ago
+"illegal weapon"++ replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Gham e Ashiqi tera shukriya...!
3 hours ago
+AH+ updated their profile
3 hours ago
+++Ayesha+++ replied to 2.O's discussion Voice Password :P :P
4 hours ago
+++Ayesha+++ updated their profile
4 hours ago
+ ! Ryan updated their profile
4 hours ago
Anu malik mcs updated their profile
4 hours ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service