Run batch file before and after job

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

Run batch file before and after job

Post by tpolson01 » Sat Mar 16, 2019 1:17 am

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: 497
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Run batch file before and after job

Post by timurhai » Sun Mar 17, 2019 4:31 pm

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 2.4.0, Ubuntu 18.04 LTS, MS Windows 10 (clients only).

tpolson01
Posts: 3
Joined: Sat Mar 16, 2019 1:05 am

Re: Run batch file before and after job

Post by tpolson01 » Mon Apr 01, 2019 5:28 pm

Thanks. Where would I place this? Or is this a custom render command script?

User avatar
timurhai
Site Admin
Posts: 497
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Run batch file before and after job

Post by timurhai » Mon Apr 01, 2019 7:56 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest