Resolved

Variables in CLI Entry

avatar

Hi All,

I've created a template for a command line entry that launches an audio stream using VLC player, I have a lot of of streams (hence the template) and would like to add the name of the stream into the URL of the stream on making a new entry with said template. I've tried using the $NAME$ variable in the URL, but this doesn't seem to work. Can any one please shed some light on how to acheive this?

Running version 2023.2.12.0

Screenshot 2023-08-09 095919.png

All Comments (6)

avatar

Hello,

Thank you for contacting us regarding this,

Could you confirm that you're able to achieve this with the command line terminal outside of RDM ?

Best regards,

avatar

Yes, can confirm that launching vlc from a cmd prompt using these arguments absolutely works.

avatar

Hello,

Understood, I will try testing this internally and get back to you with my results.

We believe it's likely due to the variable, however we want to confirm if the issue is with how the argument is written or the Arguments field itself not resolving the variable.

Best regards,

avatar

Hi Zachary,

Think you've nailed it, the arguments field doesn't resolve the $NAME$ variable. I can add the below line into the 'Run' field:

"C:\Program Files\VideoLAN\VLC\vlc.exe" % vlc http://wz2scamonitor.scahw.com.au/live/$NAME$_128.stream/playlist.m3u8 --quiet --no-qt-error-dialogs

And this wil resolve the name into the URL in the place I need it.

Although not as clean as placing the arguments in the arguments field as Devolutions have clearly intended it, that's an acceptable workaround.

Thanks,

avatar

Hello,

I'm glad to read you have a workaround, our engineers have opened a ticket to add support for variables in the arguments field of the CLI entry.

I'll update you once rhe improvement is released.

Best regards,

avatar

Hello,

Our engineering department has released a fix for this issue in the latest version of RDM. Could you please confirm that the fix works for you as well?
This version can be downloaded here: https://devolutions.net/remote-desktop-manager/home/thankyou/rdmsetup/

Best regards,

James Lafleur