Friday, 19 September 2014

This is exactly what i was expecting!!



!hope i don't get this kinda output during EXTERNALS!

OSA: [Grp C-1] CPU MANUFACTURER INFO

while(true)
do
echo "CPU INFORMATION
      1.CPU CORES AND THREADS
      2.CPU MANUFACTURER
      3.EXIT"
read a;
case $a in
1)echo "CPU INFORMATION.."
dmidecode -t processor
;;
2)echo "CPU MANUFACTURER.."
dmidecode -s processor-manufacturer   
;;







3)echo "stopped...."
  exit 0
;;
esac;
done

OSA:[Grp B-15] CONVERT FILE INFO INTO LOWER/UPPER CASE

while true

do

echo "1.Create files :";
echo "2.To Upper :";
echo "3.To Lower";
echo "4.Exit";

echo "Enter your choice : ";

read ch;
case $ch in
1)

echo "Please enter File1 name : ";
read dirr;
touch $dirr.txt
chmod 777 $dirr.txt


echo "Open and write into $dirr.txt file manually"

;;
2)
echo "Upper Case is: ";
tr '[a-z]' '[A-Z]' < $dirr.txt
#tr '[:lower:]' '[:upper:]' < $dirr.txt



;;
3)
echo "Lower Case is: ";
tr '[A-Z]' '[a-z]' < $dirr.txt
#tr '[:upper:]' '[:lower:]' < $dirr.txt

;;

4)
exit 0;
;;
esac
done
#OUTPUT
[root@localhost apcoer]# sh upper.sh
1.Create files :
2.To Upper :
3.To Lower
4.Exit
Enter your choice :
1
Please enter File1 name :
roro
Open and write into roro.txt file manually
1.Create files :
2.To Upper :
3.To Lower
4.Exit
Enter your choice :
2
Upper Case is:
ROHIT MORE
COMPUTER ENGINEERING
1.Create files :
2.To Upper :
3.To Lower
4.Exit
Enter your choice :
3
Lower Case is:
rohit more
computer engineering
1.Create files :
2.To Upper :
3.To Lower
4.Exit
Enter your choice :
4
[root@localhost apcoer]#

OSA:[GRP A-5] PROCESS INFO

while (true)
do
echo "enter your choice
    1.current shell
    2. process information
    3.global priority
    4.change priority of process
    5. exit";
read a;
case $a in
1)echo"current shell";
read b;
ps b;
;;
2)echo" process information";
read c;
ps -f $c;
;;
3)echo"global priority";
read d;
ps -ao tty nice $d;
;;
4)echo"change priority of process";
read e;
ps -f $e;
echo"which want to change priority of process";
read f;
echo"enter parent id";
read g;
renice $f$g;
;;
5)exit 0
;;
esac;
done

OSA: ADD & DELETE USER

while (true)
do
echo "enter your choice
     1. add user
     2. delete user
     3.exit";
read a;
case $a in
    1) echo"enter user name to be add:";
 read c;
 useradd $c;
;;
   2)echo"enter user name to be delete:";
 read b;
 userdel $b;
 echo"device delete successfully";
read d;
;;
  3)exit 0
;;
esac;
done

OSA: MOUNT & UNMOUNT

while(true)
do

echo    "  MENU
------------------------------------------------------------------------------
        1)Display mounted devices
2)Mount a device
3)Unmount a device
4)See physical name and instance number
5)Exit"

read choice
case $choice in

1) echo "Mounted devices are -> "
mount
;;

2) echo " MOUNT
-------------------------------------------------------------------------------
Enter the name of device -> "
read name
   echo "Enter the mount point -> "
read point
mount $name $point
echo "the device has been mounted successfully"
;;

3) echo " Unmount
-------------------------------------------------------------------------------
enter source of device ->"
read devsource
umount -f  $devsource
echo "the device has been unmounted successfully"
;;

4) echo " Physical name and instance number
-------------------------------------------------------------------------------
"
dmesg
;;

5) echo "Program has been terminated"
exit 0
;;

esac
done

Thursday, 11 September 2014

Finally 1k PAGEVIEWS

Thank YOU guys for your support.
I would like to Thank my partner HAMMERSTIEN for uploading his unique programs!