Thursday, April 12, 2012

System Calls


clear
echo "program to show file commands"
con='Y'
while [ $con='Y' ]
do
echo "1.list of files and folders
2.user's
3.process running currently
4.today's date
5.calender
6.quit"
echo "enter your choice:"
read choice
case $choice in
1)ls;;
2)who;;
3)ps;;
4)date;;
5)cal;;
6)exit;;
*)echo "invalid choice"
esac
echo
echo "Do you want to continue(y/n)"
read con
if [ $con='n' ]
then
exit;
echo "continue"
fi
done

No comments:

Post a Comment