Run batch file before and after job

General discussions and questions.
Post Reply
tpolson01
Posts: 8
Joined: Sat Mar 16, 2019 1:05 am

Run batch file before and after job

Post by tpolson01 »

Is there a way to automatically run a launch command on all render nodes before a render node starts rendering a new job then run another launch command on all render nodes after it finishes rendering the job?
User avatar
timurhai
Site Admin
Posts: 645
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Run batch file before and after job

Post by timurhai »

Hi.
You can write a command wrapper.
For example some script that will replace "render command", which can contain:

Code: Select all

pre_script.sh
"render command"
post_script.sh
Timur Hairulin
CGRU 3.0.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).
tpolson01
Posts: 8
Joined: Sat Mar 16, 2019 1:05 am

Re: Run batch file before and after job

Post by tpolson01 »

Thanks. Where would I place this? Or is this a custom render command script?
User avatar
timurhai
Site Admin
Posts: 645
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Run batch file before and after job

Post by timurhai »

Yes, this is a custom command script.
You should replace your "render command" by this.
Timur Hairulin
CGRU 3.0.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).
Post Reply