INTERACT FORUM

Please login or register.

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

Author Topic: using the MCWS and MCC functions with parameter specified  (Read 593 times)

zeltak

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 494
using the MCWS and MCC functions with parameter specified
« on: September 24, 2018, 02:41:06 am »

Hi all

I can bind a key to launch global MC commands using MCWS and MCC.

But somehow adding a parameter dosent work for me so this dosent seem to work

wget http://localhost:52199/MCWS/v1/Control/MCC\?Command\=10023,5

any clue how to address the parameter part of the command?

a normal non parameter command works well ie:

wget http://localhost:52199/MCWS/v1/Control/MCC\?Command\=10000 -O /dev/null   

do i need to escape the parameter somehow? what am i missing?

best

Z
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10943
Re: using the MCWS and MCC functions with parameter specified
« Reply #1 on: September 24, 2018, 03:01:36 am »

Try Command/MCC?Command=10023&Parameter=5
Logged
~ nevcairiel
~ Author of LAV Filters

zeltak

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 494
Re: using the MCWS and MCC functions with parameter specified
« Reply #2 on: September 24, 2018, 03:36:37 am »

Thx so much Hendrix for the prompt response!

so i think there is some progress but not there yet :)

so now i run this as you suggested

Code: [Select]
wget http://localhost:52199/MCWS/v1/Control/MCC\?Command\=10023&Parameter=5
now this seems for some reason to set the track rating to '0' (missing)

the output is here

Code: [Select]
zeltak@zlap:~/ZH_tmp/mctest|⇒  wget http://localhost:52199/MCWS/v1/Control/MCC\?Command\=10023&Parameter=5

[1] 1064
                                                                                                                                                           
Redirecting output to ‘wget-log.2’.
[1]  + 1064 done       wget http://localhost:52199/MCWS/v1/Control/MCC\?Command\=10023

and the log file


Code: [Select]
--2018-09-24 11:30:11--  http://localhost:52199/MCWS/v1/Control/MCC?Command=10023
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:52199... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:52199... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83 [text/xml]
Saving to: ‘MCC?Command=10023.3’


MCC?Command=10023.3                      0%[                                                                            ]       0  --.-KB/s               
MCC?Command=10023.3                    100%[===========================================================================>]      83  --.-KB/s    in 0s     

2018-09-24 11:30:11 (3.43 MB/s) - ‘MCC?Command=10023.3’ saved [83/83]

Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10943
Re: using the MCWS and MCC functions with parameter specified
« Reply #3 on: September 24, 2018, 04:34:28 am »

You might need to escape the & as well, it has special meaning in the shell.
Logged
~ nevcairiel
~ Author of LAV Filters

zeltak

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 494
Re: using the MCWS and MCC functions with parameter specified
« Reply #4 on: September 24, 2018, 07:37:59 am »

yup that worked!

thx alot!!!

Z
Logged
Pages: [1]   Go Up