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

 Start Discussion  Abrar Ahmed 



vmWare to install kr lia hai main ny 

Mujhy yh smjh nhi a rhi k Virtual machine ko bhi download krna pry ga kai ??

Plzz koi to guide kr do 

VMware ka sath ubuntu bhi karna he 


cs 604 k required software kha se milien ge ?

vmware yeh kia ha 

ye ik software he jis k zriay ubuntu chale ga ubuntu ik operating system he linux system ka . chookeh hum log windows operating system use kar rhe hen is liay VMware install krna parta he ubuntu use karne k liay

Sidra agar ap ko UBUNTU 32 bit krna hy to us k liye 32 bit UBUNTU and vmWear Download karen uska tutorial para hy lms py

bhai mujhy assignment se related kuch pochna hai?

ab ye kiya


ubuntu isntall now

ye ooper linux ka kya likha hua he hum to windows use kar rhe hen woh bhi 7


Today Top Members 

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

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