Run and parse CMD commands. Possible ?
-
Hello,
I have two questions.
I actually parse multiple data using json and the function "Recursive" and each json field got the same name . But how can i do a post a request using each parsed data if the json fields got the same name?
I also would like to know if it is possible to run windows CMD commands and grep the results ? If not is there some developer to hire that are able to add it as plugin ?
By the way thank you very much for your program it is awesome.
Best regards.
-
-
I don't think I understood. You're parsing a list? Look in the loliscript guides section, there is a tutorial for looping over a list. Otherwise go to the parsing guides and read the tutorial on using jtokens for parsing json.
-
This feature is coming to OpenBullet2, I am literally working on it right now ^_^ You can definitely do it as a plugin though, it's probably 10 minutes work so anyone with a bit of skill can put together a plugin for you
-
-
-
-
Sorry i mixed "parameter name" with "field name" ahah
I actually parse a json response that content multiple times the same field name (Records) I set ON "Recursive" and it work well but i need to post each captured data to another url. How i can do it if the field name is the same for each data captured ? -
OMG this is exactly what i need you are a genius!!! I don't want to abuse but do you know when you will release the V2 approximately?
-
-
- Read this https://forum.openbullet.dev/topic/7/how-to-loop-on-a-list-variable
- v2 is still a few months away, but any decent developer can put together a plugin for you that does exactly what you want
-
Thanks alot i will try my best to resolve my issue using the link you sent. And I will try to hire a developer to do this plugin.
Thanks again.
-
Who knows maybe @Pure wants to do it ^^
-
Thanks. I contacted @Pure let see if he is not busy
-
@gixec27114 said in Run and parse CMD commands. Possible ?:
-
Sorry i mixed "parameter name" with "field name" ahah
I actually parse a json response that content multiple times the same field name (Records) I set ON "Recursive" and it work well but i need to post each captured data to another url. How i can do it if the field name is the same for each data captured ? -
OMG this is exactly what i need you are a genius!!! I don't want to abuse but do you know when you will release the V2 approximately?
You can use regex as parse method and use each parsed data afterwards. You can even edit the output to satisfy your needs and then parse the output of the regex again to single parse blocks
-
-
@Fairy Thank you
-
@Ruri Hello do you know someone else able to do it ? Looks like Pure is busy i did not get a answer.
-
If I find some time I'll make the plugin and upload it here
-
That would be wonderful @Ruri you're amazing for real.
-
@Ruri Thank you so much! In the meantime I bought you some coffee
-
Here's the plugin
https://forum.openbullet.dev/assets/uploads/files/shellplugin.dllJust put it in OpenBullet's Plugins folder and restart OpenBullet and it should work. If you have any questions or problems or if you want the source code let me know!
To grep the results just use a parse block or install the gnu essentials and run an actual grep through a second shell block.
-
Great! you're amazing!
If someone got a issue while loading OB, that because we need to unblock the security settings in the plugin .dll properties. I am also blind i didnt find the shell block because i did not select the category "Plugins" in the "Add block" menu.
-
I might give it a try, thanks for the wonderful effort.
-
i have problem whit this plugin i put intro plugin folder and OB not show me the plugin.
it only shows me another one that I have.
https://prnt.sc/t1e6q1
-
@percebal42 it is not displayed in the plugins menu. When you add a block you can find it in the plugins section.
-
@gixec27114 thanks for reply.