Advertisement
Guest User

Untitled

a guest
Nov 15th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. echo " Would you like to r,u,k,l,x?"
  4. read RESPONSE
  5.  
  6. if [ "$RESPONSE" == "r" ]
  7. then
  8.         echo "Enter a runlevel"
  9.         read RUNLEVEL
  10.         init $RUNLEVEL
  11. elif [ "$RESPONSE" == "u" ]
  12. then
  13.         yum update
  14. elif [ "$RESPONSE" == "k" ]
  15. then
  16.         echo "Enter a pid to kill"
  17.         read PID
  18.         kill $PID
  19. elif [ "$RESPONSE" == "l" ]
  20. then
  21.         echo "Enter the filename to read"
  22.         read FILENAME
  23.         cat $FILENAME
  24. elif [ "$RESPONSE" == "x" ]
  25. then
  26.         exit
  27. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement