Vous êtes sur la page 1sur 2

Y.S.R.

ENGINEERING COLLEGE OF YVU


IV Year B.Tech CSE-I Sem
NETWORK PROGRAMMING LAB
Shell Script Programs
1. Experiment 1 (Basic commands)
a) Installation of Unix/Linux operating system.
b) Study of logging/logout details.
c) Study of Unix/Linux general purpose utility command list obtained from (man, who,cat,
cd, cp, ps, ls, mv, rm, mkdir, rmdir, echo, more, date, time, kill, history, chmod, chown,
finger, pwd, cal, logout, shutdown) commands.
d) Study of vi editor.
e) Study of Bash shell, Bourne shell and C shell in Unix/Linux operating system.
f) Study of Unix/Linux file system (tree structure).
g) Study of .bashrc, /etc/bashrc and Environment variables.
2. Experiment 2 (Shell scripts)
a) Write a shell script program to display list of users currently logged in.
b) Write a shell script program to display HELLO WORLD.
c) Write a shell script program to develop a scientific calculator.
d) Write a shell Script program to check whether the given number is even or odd.
e) Write a shell program to search for a given number from the list of numbers provided
using binary search method.
3. Experiment 3 (Shell scripts)
a) Write a shell program to concatenate the contents of 2 files.
b) Write a Shell script program to count number of files in a Directory.
c) Write a Shell script program to copy contents of one file to another.
d) Write a Shell script to perform operations like display, list, make directory and copy,
rename, delete, edit file.
4. Experiment 3 (Shell scripts)
a) Write a shell program to check whether a given string is palindrome or not.
b) Use a pipeline and command substitution to set the length of a line in file to a variable.
c) Write a shell program to count number of words, characters, white spaces and special
symbols in a given text.
d) Write shell script that takes a file name as an argument and deletes this file from every
directory above the pwd.
Client-server Programs
5. Implement the following forms of IPC.
a) Pipes b) FIFO
6. Implement file transfer using Message Queue form of IPC.

7. Write a program to create an integer variable using shared memory concept and increment
the variable simultaneously by two processes. Use semaphores to avoid race conditions.
8. a) Design TCP Daytime server application.
b) Design TCP iterative Echo client and server.
9. Design TCP iterative Client and server application to reverse the given input sentence.
10. Design TCP client and server application to transfer file.
11. a) Design a TCP concurrent server to convert a given text into upper case using multiplexing
system call select.
b) Design a TCP concurrent server to convert a given text into upper case using multiplexing
system call poll.
12. Design a TCP concurrent server to echo given set of sentences using poll functions.
13. a) Design UDP Echo Client and server application.
b) Design UDP Client and server application to reverse the given input sentence.
14. Design UDP Client server to transfer a file.
15. a) Design using "select" client server application to multiplex TCP and UDP requests for
converting a given text into upper case.
b) Design using "poll" client server application to multiplex TCP and UDP requests for
converting a given text into upper case.
16. Design a RPC application to add and subtract a given pair of integers.

Vous aimerez peut-être aussi