Run same script using FBCMD with different parameters - FinalBuilder 7

Is this generally possible?

We have different branches being build by its own build script (project). In the end, FBCMD is called to run dynamic script that, using data passed to it, should do something with output of the calling script.

I’ve noticed that if 2 scripts run at same time, the second script doesn’t kick FBCMD, or it starts it but script doesn’t run because it is already in use. Does it mean that I can’t use a stand alone build script for multiple parent scripts to run simultaneously?

FinalBuilder has a single log file for each project. The log file can only be updated by one running project at a time, this places a limit on the number of concurrent runs of the same script FinalBuilder can run. Concurrent runs also affect persisted variables.

It is possibly however, there is an option to turn off logging or use a temporary log file. The option for temporary log files is -tl. If you require the output to be logged, you can redirect this to a file using the -r:filename.txt option.

1 Like

Thank you so much! Yes, we use logging extensively, and we ship log file when error occurs. And having it redirected to a specific file will work perfectly for us. Each run will generate its specific log file. So the bottom line, if I redirect log file to a different location when I start FBCMD, I should be able to run multiple instances of same project. Great. Let me know if I making wrong assumption(s). Thank you again.

Jason,

related to what you’ve helped me with in this thread… Is this possible to change the title of fbcmd.exe when I launch it from another script? Or I have to wrap it into a BAT file? Or I can set it inside the script that being ran by fbcmd.exe? While I successfully run same script simultaneously, it is hard to visually identify, which one is which.

Appreciate your help.
A.

Hi Anatos

It’s not possible in FinalBuilder 7, in FinalBuilder 8 I just added a new command line option to make this possible, will be in the next update.

1 Like