(imported topic written by Trailsuender)
Can I run a Unix command such as e.g.
sudo -V | grep -i “sudo version”
directly out of relevance language and use the result in relevance code?
I really appreciate any reply! Many thanks in advance!
(imported topic written by Trailsuender)
Can I run a Unix command such as e.g.
sudo -V | grep -i “sudo version”
directly out of relevance language and use the result in relevance code?
I really appreciate any reply! Many thanks in advance!
(imported comment written by jgstew)
You cannot run commands in relevance, relevance is read only. You can have a Fixlet or task that runs periodically to output the results of a command to a file. Once the results are in a file, you can write relevance against that file. This is not as dynamic as figuring out a way to write relevance to find the info directly using inspectors, but it can be difficult to do so if there isn’t an inspector that can do so.
(imported comment written by Trailsuender)
Hi jgstew
Many thanks for reply!
It’s the way I am yet already doing and I just was looking for a method, to avoid detouring over a file.
So, it’s simply not possible. You always must combine the output made by a fixlet plus an analysis.
(imported comment written by jgstew)
The only way to do it is to find a way to query the information you are looking for directly with relevance. If you can do that, then you would not need to run the command first and output to a file.
What is it this command is trying to return? Or what info are you looking for?