You are on page 1of 4

Linux Shell Scripting Lab Programs- MCA 307

1) Program to implement buble sort


2) Program to implement FCFS scheduling algorithm
3) Program to implement SJF scheduling algorithm
4) Program to implement priority based scheduling algorithm
5) Program to implement Round Robin scheduling algorithm
6) Program to implement whether given file is Readable, Writable or Executable
7) Program to implement menu driven program
8) Program to develop Employee Database
9) Program to compute student marks and average and save in a file
10) Program to implement Elecricity Bill generation with different slabs
Program to implement buble sort
Input Set of random numbers
Output- Set of numbers in assending order
Proceedure.
Red in the set of numbers in a array and use double while loop in order to sort these nos.

Program to implement FCFS scheduling algorithm

Input Set of Process with its Timings


Output- Average Waiting Time under FSFS mode.
Proceedure.
Read in the set of Process with its Timings and Schedule them in FCFS, Compute individual
waiting time and average waiting time.

Program to implement SJF scheduling algorithm


Input Set of Process with its Timings
Output- Average Waiting Time under SJF mode.
Proceedure.
Read in the set of Process with its Timings and Schedule them in SJF, Compute individual
waiting time and average waiting time.

Program to implement priority based scheduling algorithm


Input Set of Process with its Timings and Priority values
Output- Average Waiting Time under Priority Scheduling mode.
Proceedure.
Read in the set of Process with its Timings, Priority values and Schedule them in Priority
Mode, Compute individual waiting time and average waiting time.

Program to implement Round Robin scheduling algorithm


Input Set of Process with its Timings and Time Slice values
Output- Average Waiting Time under RR Scheduling mode.
Proceedure.
Read in the set of Process with its Timings, Time Slice values and Schedule them in RR Mode,
Compute individual waiting time and average waiting time.

Program to implement whether given File is Readable, Writable and Executable


Input Given File name.
Output- Given File permissions.
Proceedure.
Read in the File name, use -r File name, -w File name, -x File name options to find its staus.

Program to implement menu driven program


Input Different options available in the menue
Output- Output of the respective shell commands
Proceedure.
Use the CASE construct to implement respective menue options and invoke shell commands for
each.

Program to develop Employee Database


Input Number of Employee and their details including their Basic.
Output- Employee details with their Gross and Net to be saved in File
Proceedure.
Read in the required values and computr Gross & Net using Expr operator and save in a file.

Program to compute student marks and average and save in a file


Input Number of Students and their details of marks in different subjects.
Output- Students details with their Total, Average and Result to be saved in File
Proceedure.
Read in the required values and compute Total, Aerage useing Expr operator and save in a file.

Program to implement Elecricity Bill generation with different slabs


Input For each customer details like current reading, previous reading.
Output- For each customer their Total consumed units and bill amount to be saved in File
Proceedure.
Read in the required values and compute Total units and bil amount with different slab useing Expr
operator and save in a file.

You might also like