Zorro.exe -run main.c does not close Zorro after finishing job

Posted By: oligodar

Zorro.exe -run main.c does not close Zorro after finishing job - 07/16/18 10:09

Command "Zorro.exe -run main.c" does not close Zorro after finishing job.

It has the same behavior as -stay switch.

Can anybody help me?
Posted By: AndrewAMD

Re: Zorro.exe -run main.c does not close Zorro after finishing job - 07/16/18 15:09

This works for me: "zorro -run Workshop1"

What's your Zorro version? Is the strategy in your strategy folder like it's supposed to?
Posted By: oligodar

Re: Zorro.exe -run main.c does not close Zorro after finishing job - 07/16/18 18:13

Zorro.exe is v1.8.3.2. Yes, main.c is in "./strategy" folder. But zorro.exe is executed from Python. That might be a problem...
Posted By: AndrewAMD

Re: Zorro.exe -run main.c does not close Zorro after finishing job - 07/16/18 21:29

Windows batch files work correctly.

Three things:
* Post your python script.
* Python version?
* Windows or Linux/Wine?
Posted By: oligodar

Re: Zorro.exe -run main.c does not close Zorro after finishing job - 07/17/18 07:26

Yes, windows batch file works correctly.

1. Python script Convert

2. Python version 2.7.13 run from Cygwin64

3. Windows 10x64

Scripts originated: statsmage.com

Caption of main Zorro windows changed from "Zorro .." to "Z Client S ..." Z Client S
Posted By: AndrewAMD

Re: Zorro.exe -run main.c does not close Zorro after finishing job - 07/17/18 11:59

Using Python 3.6 in Windows (native), with Zorro Beta 1.85.1:
Code:
import os
os.system("C:\ZorroBeta\zorro -run Workshop1")


Zorro ("Z Client") opens, runs, closes. os.system returns 0.

By the way, this command line does not work:

Code:
zorro Workshop1 -run

... but this does:
Code:
zorro -run Workshop1

Perhaps there was a change in the command line rules?

Sure enough, in your script, I see this:

Code:
zorro_call = '{} ConvertData -run -i {} -i {} -a {} -d TCK'.format(

... should be

Code:
zorro_call = '{} -run ConvertData -i {} -i {} -a {} -d TCK'.format(

... and there's a similar line in there in need of correction.
Posted By: oligodar

Re: Zorro.exe -run main.c does not close Zorro after finishing job - 07/17/18 12:16

I have changed:

zorro.exe ConvertData -run >> zorro.exe -run ConvertData

and it works!

Thank you a lot AndrewAMD
© 2024 lite-C Forums