Hello,
I need to run this C:\curl-7.19.5\curl.exe “http://192.168.1.64:8983/solr/update?commit=true” -H “Content-Type: text/xml” --data-binary “13348” in servoy the same way I will do it in the console.
executeProgramInBackground will start your command in a separate thread and it
returns immediately, without waiting for the return of the command, and this is why
this function has no return
Guys, any idea why a curl command would execute perfectly and do what it’s expected to do in command line but would popup with runtime exception ‘Cannot execute external program’?
The command is something like this:
the first parameter of application.executeProgram, is the program name, without its execution parameters, those are specified as separate parameters;
check the sample code of application.executeProgram for an example
maria:
Guys, any idea why a curl command would execute perfectly and do what it’s expected to do in command line but would popup with runtime exception ‘Cannot execute external program’?
The command is something like this:
Gabi Boros:
the first parameter of application.executeProgram, is the program name, without its execution parameters, those are specified as separate parameters;
check the sample code of application.executeProgram for an example
You can also create “on the fly” a .bat (windows) or .sh (linux/mac with attribute +x) with the command(s) to execute in console and call it with application. executeProgram.
I use this method when I have to launch several consecutive system commands or i have one repository of scripts on my database.
do you have an example of this code. I am trying to save a sound file .m4a and then convert it to wave on an OSX platform before ftping it from servoy.
I think i need to create a .sh file on the fly change to +X.
If you have a small example of a few lines of code that would be really helpful and save me a few hours!!!