r5320503 Unix Programming
r5320503 Unix Programming
N
T
U
W
O
R
L
D
Code :R5320503 R5
III B.Tech II Semester(R05) Supplementary Examinations, April/May 2011
UNIX PROGRAMMING
(Computer Science & Engineering, Information Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE questions
All questions carry equal marks
1. What is a process? List and explain various process utilities with suitable examples.
2. Discuss the various backup utilities available in UNIX. Ilustrate with suitable examples.
3. (a) Write a shell script to calculate over time pay of 20 employees. Overtime is paid at the
rate of Rs.15.00 per hour for every hour worked above 40 hours. Assume that employees
do not work for fractional part of an hour.
(b) Write a C program to concatenate the contents of 2 les using command line arguments.
4. (a) What is metacharacter? List and explain about any 7 metacharacters available in unix.
(b) Write a shell script which will receive either the lename or the lename with its full path
during execution.this script should obtain information about this le as given by ls - l and
display in proper format.
5. Write the syntax of following system calls.
(a) open
(b) creat
(c) read
(d) write.
6. (a) Write a program to illustrate the vfork function call.
(b) Write a program for signal implementation.
7. Briey explain about malloc, free, realloc, calloc functions.
8. Write a program to transfer a large amount of data between two processes using FIFO.
www.jntuworld.com
www.jntuworld.com