Skip to main content
Question

JSP & Bash

  • June 17, 2014
  • 0 replies
  • 0 views

Forum|alt.badge.img+11

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

Be the first to reply!