<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Run System commands</title>
        <description> Hey there.
I just wondered, if it's possible to make Muster perform a system command like &amp;quot;copy&amp;quot; or &amp;quot;delete&amp;quot; on a specific machine.
The task is to move a computed file from a local computer to a network folder after it's created in Maya via Muster.
So the workflow would be like:
1. Render the data file in Maya on one machine
2. Copy the generated file from the local computer to a server
3. Use the copied file for a new rendering

I know that it's possible to set dependencies for jobs, so the main question is how to run system commands as a job via the Muster Submission Panel.
Any advices are welcome!

Thanks,

Markus</description>
        <link>http://www.vvertex.com/forum/read.php?6,143,143#msg-143</link>
        <lastBuildDate>Mon, 27 May 2013 04:55:00 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.vvertex.com/forum/read.php?6,143,158#msg-158</guid>
            <title>Re: Run System commands</title>
            <link>http://www.vvertex.com/forum/read.php?6,143,158#msg-158</link>
            <description><![CDATA[ Yeah, this was exactly the problem. I just figured it out, while you were writig.<br />
<br />
Thanks,<br />
<br />
markus]]></description>
            <dc:creator>Markus</dc:creator>
            <category>Templates</category>
            <pubDate>Wed, 30 May 2007 00:52:39 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.vvertex.com/forum/read.php?6,143,156#msg-156</guid>
            <title>Re: Run System commands</title>
            <link>http://www.vvertex.com/forum/read.php?6,143,156#msg-156</link>
            <description><![CDATA[ You're using the /k flag, this means, from Microsoft help:<br />
<br />
Executes the command and stay<br />
<br />
Basically the command is executed but the cmd.exe process stay alive, that's why Muster is stuck with &quot;Job in progress...&quot;<br />
<br />
You should check the /k with the /c flag, that means: Execute the command then terminate.<br />
<br />
So:<br />
<br />
SET COMMAND_LINE &quot;/k %ATTR(THECOMMAND)&quot; <br />
<br />
should be:<br />
<br />
SET COMMAND_LINE &quot;/c %ATTR(THECOMMAND)&quot; <br />
<br />
Hope this helps.]]></description>
            <dc:creator>admin</dc:creator>
            <category>Templates</category>
            <pubDate>Wed, 30 May 2007 00:41:25 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.vvertex.com/forum/read.php?6,143,155#msg-155</guid>
            <title>Re: Run System commands</title>
            <link>http://www.vvertex.com/forum/read.php?6,143,155#msg-155</link>
            <description><![CDATA[ Thanks for your answer. So here is my template:<br />
<br />
---------------------------------------------------------------<br />
<br />
# JDL - Job Description language<br />
# Template file for Muster 5.0, applies to Maya 7.0+ supported engines<br />
#<br />
# Basic template declaration, specify job string identifier and unique ID<br />
<br />
DECLARE TEMPLATE  <br />
{<br />
<br />
	SET TEMPLATE_NAME &quot;Windows Command&quot;<br />
	SET TEMPLATE_DESC &quot;Perform a windows command&quot;<br />
	SET TEMPLATE_UID 999<br />
	SET TEMPLATE_LOGIC SINGLE<br />
	SET DEFAULT_PRIORITY 1<br />
	SET DEFAULT_POOL &quot;Entire Farm&quot;<br />
	SET MAXIMUM_LICENSES 0<br />
}<br />
<br />
DECLARE SINGLE<br />
{<br />
<br />
}<br />
<br />
DECLARE SUBMISSION <br />
{<br />
	SET ENABLE_ADDITIONAL_FLAGS 0<br />
	ADD THECOMMAND STRING_INPUT &quot;String&quot; &quot;Full Command&quot; ACTIVABLE MANDATORY<br />
}<br />
<br />
<br />
DECLARE ENGINE_WIN<br />
{<br />
	SET PLATFORM_ENABLED 1<br />
	SET ENABLE_ERROR_CHECK 1<br />
	SET ENABLED_BY_DEFAULT 1<br />
	SET COMMAND_LINE &quot;/c %ATTR(THECOMMAND)&quot;<br />
	SET EXECUTABLE &quot;%ATTR(CMDEXECUTABLE)&quot;<br />
	SET STARTING_FOLDER &quot;c:\\&quot;<br />
	SET ENVIRONMENT_BLOCK USER<br />
	SET DETECTION_LOGIC REALPROC<br />
	<br />
	DECLARE CONFIGURABLE_TAGS<br />
	{<br />
		ADD CMDEXECUTABLE FILE_SELECTOR &quot;c:\windows\sytem32\cmd.exe&quot; &quot;NT Cmd executable&quot; &quot;Specify the NT Cmd executable&quot; NOTACTIVABLE MANDATORY *.exe<br />
		<br />
	}<br />
<br />
	DECLARE CUSTOM_ENVIRONMENT<br />
	{<br />
		<br />
	}<br />
}<br />
<br />
DECLARE ENGINE_MAC <br />
{<br />
	SET PLATFORM_ENABLED 0<br />
	SET ENABLED_BY_DEFAULT 0<br />
}<br />
<br />
DECLARE ENGINE_LINUX <br />
{<br />
	SET PLATFORM_ENABLED 0<br />
	SET ENABLED_BY_DEFAULT 0<br />
}<br />
<br />
DECLARE ERROR <br />
{<br />
	ADD WARNING &quot;Warning&quot; &quot;Warn&quot; <br />
	ADD ERROR &quot;Error&quot; <br />
	ADD DEFAULT_RETCODE 0<br />
}<br />
<br />
<br />
--------------------------------------------------<br />
<br />
Works well for me now.<br />
Just type a usual windows command line like copy c:\copyfile.txt c:\copyfolder in the &quot;Full Command&quot; box and enter the correct IP for the machine that should perform the command.<br />
<br />
<br />
Markus]]></description>
            <dc:creator>Markus</dc:creator>
            <category>Templates</category>
            <pubDate>Tue, 29 May 2007 16:13:44 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.vvertex.com/forum/read.php?6,143,152#msg-152</guid>
            <title>Re: Run System commands</title>
            <link>http://www.vvertex.com/forum/read.php?6,143,152#msg-152</link>
            <description><![CDATA[ You've to write a new template.<br />
the easiest way to perform what you're asking for is running a batch file (.cmd).<br />
<br />
To run batch files, you've invoke the windows cmd.exe command line utility.<br />
<br />
If you step inside the template folder of your installation, you'll find an example folder with a template able to launch a chkdsk. You may modify that one to meet your needs.<br />
<br />
regards<br />
<br />
<br />
Leonardo.]]></description>
            <dc:creator>admin</dc:creator>
            <category>Templates</category>
            <pubDate>Fri, 25 May 2007 20:44:35 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.vvertex.com/forum/read.php?6,143,143#msg-143</guid>
            <title>Run System commands</title>
            <link>http://www.vvertex.com/forum/read.php?6,143,143#msg-143</link>
            <description><![CDATA[ Hey there.<br />
I just wondered, if it's possible to make Muster perform a system command like &quot;copy&quot; or &quot;delete&quot; on a specific machine.<br />
The task is to move a computed file from a local computer to a network folder after it's created in Maya via Muster.<br />
So the workflow would be like:<br />
1. Render the data file in Maya on one machine<br />
2. Copy the generated file from the local computer to a server<br />
3. Use the copied file for a new rendering<br />
<br />
I know that it's possible to set dependencies for jobs, so the main question is how to run system commands as a job via the Muster Submission Panel.<br />
Any advices are welcome!<br />
<br />
Thanks,<br />
<br />
Markus]]></description>
            <dc:creator>Markus</dc:creator>
            <category>Templates</category>
            <pubDate>Wed, 23 May 2007 14:48:01 +0200</pubDate>
        </item>
    </channel>
</rss>
