Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
eventasm
Partner - Contributor II
Partner - Contributor II

Execute Command in script will finish but not execute

Hi everyone,

Due to project needs I need a qliksense app to execute something like:

execute cmd.exe /c start msedge www.awebpageigottoopen.com;

This is the syntax I've followed and I've also tried with /C (caps)

I'm running a qliksense server installation and I've disabled standard mode on the QMC already, and my settings.ini looks like this:

eventasm_0-1608751844324.png

Note: I've also tried without the StandardReload line and it won't work either.

My main problem is that when I execute my app it goes like it shows bellow:

eventasm_1-1608751955337.png

It's in Spanish (sorry about that) but it basically says load was sucessfully finished but it hasn't opened that msedge window. I'm using the server machine so it should open it at my windows session but it won't. 

Any ideas of what's going on? I really need help on this 

Labels (2)
17 Replies
eventasm
Partner - Contributor II
Partner - Contributor II
Author

Also, did you write something else like exit script or something? or just 

EXECUTE "C:\Program Files\Internet Explorer\iexplore.exe" http://www.awebpageigottoopen.com/

?

Anil_Babu_Samineni

Make sense, I have settings like in this folder.

C:\ProgramData\Qlik\Sense\Engine\Settings.ini

And paramenters like below

[Settings 7]

key = value

OverrideScriptSecurity=1

.... // There are certain for my project to executre Non SQL DB's, ..

And, I am using Windows server 2016 + QS Server Sep 2020 SR0

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni

Nothing for now in test application

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
eventasm
Partner - Contributor II
Partner - Contributor II
Author

Did yours take a lot to open? Mine has already been thinking for 6 min straight and won't launch. 

I don't know, this is driving me crazy. Let me know if im skipping any important part. I have:

Disabled standard mode in the qmc engine part.
My settings.ini looks exactly like yours (literally copied it)  
My script looks exactly like yours (literally copied it).
If there's anything else you may think of  that may be failing I'll be more than thankful. Could it be a problem of my deployment?

If not, thanks anyway for your time and help

Anil_Babu_Samineni

It was taken 30 seconds to my URL, Have you disabled all engine nodes?

Try this in desktop first and see, If that is working or not?

2020-12-29 12_55_47-Edit engine - QMC.png

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
eventasm
Partner - Contributor II
Partner - Contributor II
Author

It does work in my desktop QS. 

And yes, I have it configured just as you do:

eventasm_0-1609259850194.png

Again thanks a lot. Do you know if there's someone from Qlik I can contact with this issue or something?

Anil_Babu_Samineni

I should not disclose Qlik email's here. But let's see @Clever_Anjos can help?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Arindam_Ghoshal_13
Contributor III
Contributor III

Hi @Anil_Babu_Samineni  & @eventasm 

I have facing exact same problem in qlik sense

I have created a .bat file which runs 3 python code and generate 3 xlsx file as output.

While double clicking on bat file it WORKS perfectly from server but not getting execting from Qlik Sense "Execute" statement.

I have tried multiple statements & also tried after changing settings.ini file to below configurations & restarted the services. 

[Settings 7]
StandardReload=0
AllowExecuteCommand=1
OverrideScriptSecurity=1



Please help as there are few batch files in my code at mutiple sections.