Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
09-28-2010, 06:08 AM #1
- Join Date
- Sep 2010
- Thanked 0 Times in 0 Posts
How to display Linux command output through JSP page in Tomcat
I am newbee to the JSP, Please help for solving this problem
I want to display linux command output though JSP in tomcat.
Linux Command: #fdisk -l | grep -iE 'mb|gb|tb'
How do this command's out put taken out through jsp page though tomcat.
Any suggestions, Please help me.
In php it very simple as
<php? echo ( system(fdisk -l | grep -iE 'mb|gb|tb'));