The document outlines 10 Linux shell scripting programs including: 1) a bubble sort program, 2) an FCFS scheduling algorithm program, 3) an SJF scheduling algorithm program, 4) a priority-based scheduling algorithm program, 5) a round robin scheduling algorithm program, 6) a program to check file permissions, 7) a menu-driven program, 8) an employee database program, 9) a student marks/average program, and 10) an electricity bill generation with slabs program. For each program, the input, output, and general procedure are described with the goal of scheduling and sorting processes, checking file permissions, building programs with menus and databases, and performing calculations to generate outputs.
The document outlines 10 Linux shell scripting programs including: 1) a bubble sort program, 2) an FCFS scheduling algorithm program, 3) an SJF scheduling algorithm program, 4) a priority-based scheduling algorithm program, 5) a round robin scheduling algorithm program, 6) a program to check file permissions, 7) a menu-driven program, 8) an employee database program, 9) a student marks/average program, and 10) an electricity bill generation with slabs program. For each program, the input, output, and general procedure are described with the goal of scheduling and sorting processes, checking file permissions, building programs with menus and databases, and performing calculations to generate outputs.
The document outlines 10 Linux shell scripting programs including: 1) a bubble sort program, 2) an FCFS scheduling algorithm program, 3) an SJF scheduling algorithm program, 4) a priority-based scheduling algorithm program, 5) a round robin scheduling algorithm program, 6) a program to check file permissions, 7) a menu-driven program, 8) an employee database program, 9) a student marks/average program, and 10) an electricity bill generation with slabs program. For each program, the input, output, and general procedure are described with the goal of scheduling and sorting processes, checking file permissions, building programs with menus and databases, and performing calculations to generate outputs.
The document outlines 10 Linux shell scripting programs including: 1) a bubble sort program, 2) an FCFS scheduling algorithm program, 3) an SJF scheduling algorithm program, 4) a priority-based scheduling algorithm program, 5) a round robin scheduling algorithm program, 6) a program to check file permissions, 7) a menu-driven program, 8) an employee database program, 9) a student marks/average program, and 10) an electricity bill generation with slabs program. For each program, the input, output, and general procedure are described with the goal of scheduling and sorting processes, checking file permissions, building programs with menus and databases, and performing calculations to generate outputs.
Download as DOC, PDF, TXT or read online from Scribd
Download as doc, pdf, or txt
You are on page 1of 4
At a glance
Powered by AI
The document discusses 10 different shell scripting lab programs including programs to implement sorting, scheduling algorithms like FCFS, SJF, priority based and round robin scheduling, checking file permissions, a menu driven program, developing an employee database, computing student marks and generating electricity bills.
Scheduling algorithms like FCFS, SJF, priority based and round robin scheduling are discussed.
Programs to check whether a given file is readable, writable or executable and a menu driven program are mentioned.
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.