Skip to main content
Question

Extension Attribute for USB Scanner

  • October 15, 2019
  • 1 reply
  • 16 views

Forum|alt.badge.img+7

I'm attempting to create an extension attribute that will echo the following command.

sudo system_profiler SPPrintersDataType | grep 'Perfection|Expression'

What I have so far in the EA is

echo "<result>system_profiler SPPrintersDataType | grep 'Perfection|Expression</result>"

Any suggestions are appreciated.

1 reply

Forum|alt.badge.img+14
  • Contributor
  • October 15, 2019

Looks like you are missing the ' at the end of Perfection|Expression

echo "<result>system_profiler SPPrintersDataType | grep 'Perfection|Expression'</result>"