Dell warranty status

Below fixlet i tried but Debugger shows an error in line 1, unsure what is wrong

wget --no-check-certificate --output-document=/tmp/dell_warranty.html "https://www.dell.com/support/home/us/en/04/product-support/servicetag/[serial number of current system]/warranty"
if {exists file "/tmp/dell_warranty.html"}
then
regsub -all {<[^>]*>} "" (cat "/tmp/dell_warranty.html") >>"/tmp/dell_warranty_status.txt"
else
"Unable to check Dell warranty status" >>"/tmp/dell_warranty_status.txt"
endif

Result:
/tmp/dell_warranty_status.txt

Actionscript isn’t a shell, so to run external commands, you have to tell actionscript how to run them.
Typical examples are wait & run, with overrides to tailor their behaviour.

See https://developer.bigfix.com/action-script/reference/execution/

Thanks for your response. Could you please tell what has to be corrected in first line.

The entire approach.

Look at this Analysis, and the action its paired with.
https://bigfix.me/analysis/details/2998613

1 Like