<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic query command port across Maya sessions in Maya Programming Forum</title>
    <link>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102977#M16933</link>
    <description>SO I open two sessions of Maya&lt;BR /&gt;&lt;BR /&gt;In session 1 I open a command port via&lt;BR /&gt;&lt;BR /&gt;commandPort -n ":8000";&lt;BR /&gt;&lt;BR /&gt;If in session 1 I query the command port creation with:&lt;BR /&gt;&lt;BR /&gt;commandPort -q ":8000";&lt;BR /&gt;// Result:1//&lt;BR /&gt;&lt;BR /&gt;It sees the port.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But if in the second Maya session I query the commandPort via:&lt;BR /&gt;&lt;BR /&gt;commandPort -q ":8000";&lt;BR /&gt;// Result:0//&lt;BR /&gt;&lt;BR /&gt;It thinks the port has not been created. But port 8000 is taken and &lt;BR /&gt;cannot be used. How can I query that a command port is taken in this &lt;BR /&gt;way, across multiple session of Maya?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Joey</description>
    <pubDate>Tue, 07 Jul 2009 12:59:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-07-07T12:59:57Z</dc:date>
    <item>
      <title>query command port across Maya sessions</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102977#M16933</link>
      <description>SO I open two sessions of Maya&lt;BR /&gt;&lt;BR /&gt;In session 1 I open a command port via&lt;BR /&gt;&lt;BR /&gt;commandPort -n ":8000";&lt;BR /&gt;&lt;BR /&gt;If in session 1 I query the command port creation with:&lt;BR /&gt;&lt;BR /&gt;commandPort -q ":8000";&lt;BR /&gt;// Result:1//&lt;BR /&gt;&lt;BR /&gt;It sees the port.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But if in the second Maya session I query the commandPort via:&lt;BR /&gt;&lt;BR /&gt;commandPort -q ":8000";&lt;BR /&gt;// Result:0//&lt;BR /&gt;&lt;BR /&gt;It thinks the port has not been created. But port 8000 is taken and &lt;BR /&gt;cannot be used. How can I query that a command port is taken in this &lt;BR /&gt;way, across multiple session of Maya?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Joey</description>
      <pubDate>Tue, 07 Jul 2009 12:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102977#M16933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-07T12:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: query command port across Maya sessions</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102978#M16934</link>
      <description>Maya only knows about it's own session. I'd check with something like netstat -na.</description>
      <pubDate>Tue, 07 Jul 2009 14:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102978#M16934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-07T14:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: query command port across Maya sessions</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102979#M16935</link>
      <description>But it cannot generate a port at :8000 from session 2 even though query says the port is free.  Hmmmm..., maybe I've got this backwards. I was trying to find the free port before creating it, seemed like the smart thing to do. Maybe I should just start trying to make sequential commandports and query if the result is true at each attempt then stop the process after the first succesful commandPort creation.  &lt;BR /&gt;&lt;BR /&gt;Joey</description>
      <pubDate>Tue, 07 Jul 2009 16:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102979#M16935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-07T16:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: query command port across Maya sessions</title>
      <link>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102980#M16936</link>
      <description>Nope....that didn't work. Executing something that causes an error forces the userSetup.mel script to terminate. Can't execute a commandPort initialization with explicit port number. If it fails so does the rest of the mel script. Back to the drawing board.&lt;BR /&gt;&lt;BR /&gt;What I'm trying to do is force a commandPort creation at Maya startup, but using a defined and available port number. If anyone knows how to accomplish this it would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Joey</description>
      <pubDate>Tue, 07 Jul 2009 20:46:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/maya-programming-forum/query-command-port-across-maya-sessions/m-p/4102980#M16936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-07T20:46:32Z</dc:date>
    </item>
  </channel>
</rss>

