JSP & Bash

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 06-17-2014 11:55 AM
I am trying to get the serial number to show up on self service but I am stuck on how to execute a bash command in java, any input would be get!
<%= Runtime.getRuntime().exec("/usr/sbin/system_profiler SPHardwareDataType | awk '/Serial/ {print $4}'") %>
Thanks!
0 REPLIES 0
