JSP & Bash

kenergy
Contributor

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