Extension Attribute for USB Scanner

SFRANCIS004
New Contributor III

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 1

rlandgraf
Contributor

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

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