Call External Script
4 replies
Pepe
1 year ago #289464
Hi,
Call External Script in SQX v142 don’t work for me.
I use path to script: C:\Script\MyScript.bat, and the program to do nothing, and pass to the other step of custom project (i put 1 minute to see if it do anything, but to do nothing).
How can i use that? Are .bat or .exe valid to be called?
Thanks in advance!
0
Tomas Matejka
1 year ago #289490
Hi,
can you share the log file from /user/log/StrategyQuant? There will be more info about what happened during that file call event, we can check
0
Pepe
1 year ago #289516
07:55:40.275 [qtp842924653-39037878] INFO c.s.tradinglib.project.SQProject – =========== Project started ===========
07:55:40.276 [Thread-39037801] INFO c.s.t.project.ProjectGlobalLog – Creating project log at ‘C:/SQX_142_win_20250206/user/projects/EEABJC/log/global_log_20250405_055540.log’
07:55:40.278 [Thread-39037801] INFO c.s.t.project.ProgressEngine – Call external script : Executing script ‘EEABJC.exe’
07:55:40.341 [Thread-39037801] INFO c.s.t.project.ProgressEngine – Call external script : Project is paused, waiting for script.
07:55:40.371 [Thread-39037801] INFO c.s.t.project.ProgressEngine – Call external script : Script done.
07:55:40.371 [Thread-39037801] INFO c.s.t.project.ProgressEngine – Call external script : Task finished
07:55:40.371 [Thread-39037801] INFO c.s.t.project.ProgressEngine – Project finished
and the other log (‘C:/SQX_142_win_20250206/user/projects/EEABJC/log/global_log_20250405_055540.log):
Project: EEABJC
Log file: /global_log_20250405_055540.log
————————————————————————————————————————–
TASK STARTED at 2025.04.05 07:55:40.277
Task: Call external script, Type: CallExternalScript
Databanks before start: Results (376), EliminadoEAB (0)
TASK FINISHED at 2025.04.05 07:55:40.371 in 94 ms.
Databanks after finish: Results (376), EliminadoEAB (0)
Script done.
0
Pepe
1 year ago #289517
<span class=”–l –r container-target”><span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>I</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>add</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>this</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>to</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>the</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>above</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>for</span> <span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>clarity</span><span class=”–l –r hover:bg-blue-100 hover:dark:bg-blue-600″>.</span></span>
<span class=”–l –r container-target”>I created a .bat and it didn’t work.</span> <span class=”–l –r container-target”>I thought it needed to be an .exe.</span> <span class=”–l –r container-target”>I created the executable with vb net, console application and the exact same thing happens.</span> <span class=”–l –r container-target”>Even though I put wait until call ends, the program it calls doesn’t finish executing and SQX tells me it’s finished.</span>
<span class=”–l –r container-target”>I don’t know why this happens like this, how should I program the application in vb net, so that SQX sees that it has not finished executing yet?</span>
<span class=”–l –r container-target”><span class=”–l –r bg-blue-50 text-unit-target”>Thanks in advance.</span></span>
0
Pepe
1 year ago #289518
I add this to the above for clarity.
I created a .bat and it didn’t work. I thought it needed to be an .exe. I created the executable with vb net, console application and the exact same thing happens. Even though I put wait until call ends, the program it calls doesn’t finish executing and SQX tells me it’s finished.
I don’t know why this happens like this, how should I program the application in vb net, so that SQX sees that it has not finished executing yet?
Thanks in advance.
0
Viewing 4 replies - 1 through 4 (of 4 total)