INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCC command to set user  (Read 2198 times)

RvdZ

  • Recent member
  • *
  • Posts: 5
MCC command to set user
« on: November 19, 2016, 07:25:12 am »

I try to start MC with a MCC command to set the default user.
I'm using MC21 on Ubuntu 16.04.

It looks like MC is not handling the command-line parameters correct.
I use the following command:
mediacenter21 /MCC 22028,1008 
or (to escape the ","):
mediacenter21 /MCC 22028\,1008

Instead of starting with user-ID 1008 it tries to add a file with filename 22028,1008
Am I doing something wrong?
Anyone an idea?

Part of the logfile for command "mediacenter21 /MCC 22028\,1008":
...
0000379: 11077504: General: CMCPlayerApp::ExecuteCommandLine: Command Line: /MCC 22028,1008
0000379: 11077504: General: CMCPlayerApp::Play: Start
0000379: 11077504: General: CMCPlayerApp::Play: Command line: /MCC 22028,1008
...
0000436: 11077504: Import: JRAnalyzer::Open: Start
0000436: 11077504: Import: JRAnalyzer::AddFile: Start
0000436: 11077504: Import: JRAnalyzer::AddFile: Filename: 22028,1008
...

René.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: MCC command to set user
« Reply #1 on: November 19, 2016, 04:35:37 pm »

As far as I know, command line parameters for Media Center are not supported by any platform other than windows.  Maybe I'm wrong though.   Have you tried issuing a very simple MCC command on the command line like Play/Pause (command # 10000) ?

You might consider automating your MCC commands by using wget or curl with calls to the web interface MCWS, which can issue any MCC command.  See the online docs for MCWS on your MC server with this URL:

http://localhost:52199/MCWS/v1/doc

Good luck.

Brian.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13488
Re: MCC command to set user
« Reply #2 on: December 16, 2016, 04:51:54 pm »

As far as I know, command line parameters for Media Center are not supported by any platform other than windows.  Maybe I'm wrong though.   Have you tried issuing a very simple MCC command on the command line like Play/Pause (command # 10000) ?

You might consider automating your MCC commands by using wget or curl with calls to the web interface MCWS, which can issue any MCC command.  See the online docs for MCWS on your MC server with this URL:

http://localhost:52199/MCWS/v1/doc

Good luck.

Brian.
Brian is correct. There isn't a command line executor package in linux at this time and you can do it through the web interface for example with curl.
Logged
Pages: [1]   Go Up