Shutdown computer after rendering is done

2008-11-02

To shutdown one or more render servers in your renderfarm add special kind of job to render queue by entering this command in command line:

"c:\Program Files\Autodesk\Backburner\cmdjob.exe" -jobname "shutdown" -jobNameAdjust -manager 192.168.1.2 shutdown.exe -s -m 192.168.1.2 -t 60

You can create .bat file with this command and put it on the desktop to quickly add "shutdown" job to render queue.

Parameters:

  • "shutdown" - name of the job you see in the backburner's monitor
  • "192.168.1.2" - IP of the backburner manager/
  • shutdown.exe -s -m 192.168.1.2 -t 60 - this is the windows command which actually shuts down the computer.

In this case computer will shut down after 60 seconds after last rendering job. One thing to consider: user, who add this command to backburner queue should have enougth permission to turn off the render server(s).

In place of the shutdown.exe you can place virtually any command that is accessible in your network environment. To run one command job on every computer in the render network add -perServer option to cmdjob.exe. Without it command will run only one time on first server which finishes rendering.

comments

6 comments:

Hi. What if I'm using only one machine with backburner? I've tried your command line but than it adds another job with same name only.

I also used this command on one computer. But it was under WinXP, now, under 64-bit Vista, it doesn't work for me and I don't know why.

May be you have similar problem.

Yeah. I use vista x64 as well. Do you know any other way to auto shut-down PC after rendering? Thanks

I'm using empty scene with post-render script containing one string:

DOSCommand "shutdown.exe -s -m computername -t 60"

I submitted this scene with low priority and reset it in backburner monitor everytime I want to shutdown computer after rendering.

Привет Сергей! Спасибо за полезную информацию - очень помогло. Одна проблемка только - на ХР-64 Backburner отказывается принимать команду shutdown.exe.Можно это как нибудь обойти?И ещё - есть возможность сделать так, чтобы задача "shutdown" добавлялась в список в режиме dependence, и ждал бы своей очереди после окончания всех задач. Спасибо!

У меня под 64-битной Вистой эта команда тоже не работает. Обходной путь такой: запускается на рендер пустая сцена с назначенным post-render скриптом. В скрипте одна команда:

DOSCommand "shutdown.exe -s -m computername -t 60"

Чтоб задача запускалась после всех рендеров сделал ей низкий приоритет. И с очереди не удаляю, просто перезапускаю каждый раз. Вроде работает.

your e-mail will not be shown
(markdown supported)