Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- echo " Would you like to r,u,k,l,x?"
- read RESPONSE
- if [ "$RESPONSE" == "r" ]
- then
- echo "Enter a runlevel"
- read RUNLEVEL
- init $RUNLEVEL
- elif [ "$RESPONSE" == "u" ]
- then
- yum update
- elif [ "$RESPONSE" == "k" ]
- then
- echo "Enter a pid to kill"
- read PID
- kill $PID
- elif [ "$RESPONSE" == "l" ]
- then
- echo "Enter the filename to read"
- read FILENAME
- cat $FILENAME
- elif [ "$RESPONSE" == "x" ]
- then
- exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement