Automatic Shutdown after Finishing Distributed Rendering

Discussions about rendering in SOFTIMAGE©
User avatar
alias3ds
Posts: 36
Joined: 11 Apr 2015, 03:03

Automatic Shutdown after Finishing Distributed Rendering

Post by alias3ds » 20 Sep 2015, 03:14

Hi all

I wonder is there any way to realize an automatic Shutdown after Finishing Distributed Rendering. Thanks.

Alias

User avatar
rray
Moderator
Posts: 1684
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany

Re: Automatic Shutdown after Finishing Distributed Rendering

Post by rray » 20 Sep 2015, 03:27

Hi, maybe you can look at some OS option, like in windows could probably use the task planner to shut down the machine after a longer period of the CPU being idle.
softimage resources section updated Feb 7 2019

NNois
Posts: 729
Joined: 09 Jun 2009, 20:33

Re: Automatic Shutdown after Finishing Distributed Rendering

Post by NNois » 21 Sep 2015, 00:38

well,
Until i'm asking you first what app are you using to distribute your renders !!
If it's your's i'm sure you'll already know the right shutdown command, and if it's RR / Deadline / CGRU they all have that build in ;-).

If it's a simple .bat file with skip frames, just put shutdown.exe /s /t 00 (or his varient) on the next line. Some long time ago i use to made .bat file like that:

Code: Select all

REM XSI Rendering 2 scenes sequentially
REM scene1
xsibatch -render \\server\project\scn\scene1.scn -skip on -pass "pass1,pass2"
REM scene2
xsibatch -render \\server\project\scn\scene2.scn -skip on -pass "pass1,pass2"
REM Rendering done ! shutting down in 30s !
shutdown.exe /s /t 30
you launch the bat on each machine and done ;-)

Cheers

User avatar
alias3ds
Posts: 36
Joined: 11 Apr 2015, 03:03

Re: Automatic Shutdown after Finishing Distributed Rendering

Post by alias3ds » 24 Sep 2015, 03:21

NNois wrote:well,
Until i'm asking you first what app are you using to distribute your renders !!
If it's your's i'm sure you'll already know the right shutdown command, and if it's RR / Deadline / CGRU they all have that build in ;-).

If it's a simple .bat file with skip frames, just put shutdown.exe /s /t 00 (or his varient) on the next line. Some long time ago i use to made .bat file like that:

Code: Select all

REM XSI Rendering 2 scenes sequentially
REM scene1
xsibatch -render \\server\project\scn\scene1.scn -skip on -pass "pass1,pass2"
REM scene2
xsibatch -render \\server\project\scn\scene2.scn -skip on -pass "pass1,pass2"
REM Rendering done ! shutting down in 30s !
shutdown.exe /s /t 30
you launch the bat on each machine and done ;-)

Cheers
Hi NNois, Thanks very much for you help. I've tried the code you showed me, it works! Thank you :)