1 of 1 people found this helpful
I needed to do something similar, but found that I needed a plugin to accomplish this. Luckily, the BaseElements Plugin is free and offers
BE_ExecuteSystemCommand ( "command here" )
where the the command can be just about anything command-line compatible. I use a curl command because I cannot configure the headers exactly like a vendor needs using the either the included functions or other plugin functions.
The advantage is that you can sculpt your command to include information from FM and also retrieve the result of the command by setting a variable to the result of the command like this:
Set Variable [$result ; BE_ExecuteSystemCommand ($script) ]
If applescript is an option you can call on "system events" to execute terminal commands.
2 of 2 people found this helpful
The Send Event can execute Bash files and so can the "perform applescript" script step, provided you wrap the bash call in an apple event.
If you are going to use (or already use) the BE plugin then perhaps the JAMF REST APi can be used using the cURL functionality that the plugin already has instead of putting the calls in a bash file...
Plug-in wise, bBox is also free and has shell, Curl, and Python functions that can do this.
Server-side, you could use a system-level or script sequence schedule to make the call w/o using a plug-in.
bBox is only Mac though, correct? BE is cross-platform.
Thank you. I downloaded the plug-in and will give it a try. It looks very promising.
Correct, bBox is macOS only at this point. Expecting to have a Linux version in a month or two though.