# Command line interface problems

**URL:** <https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666>\
**Category:** LightBurn Software Questions\
**Tags:** request\
**Created:** [September 27, 2021, 1:22pm UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666 "2021-09-27T13:22:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmarko](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/k/898d66/32.png) [@kmarko](https://forum.lightburnsoftware.com/u/kmarko)\
**Post date:** [September 27, 2021, 1:22pm UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/1 "2021-09-27T13:22:14Z")

</div>

I’ve just installed the lightburn program and i’m having a project, where i need to run the program with digital inputs from siemens controller.

We decided that the best way to do it is with cmd.  
I’ve noticed this post [Launch LightBurn and Load Files into LightBurn using Command Line Interface - #2 by LightBurn](https://forum.lightburnsoftware.com/t/launch-lightburn-and-load-files-into-lightburn-using-command-line-interface/9297/2)  
And managed to start the software with SendUDP.exe, however i dont know how to get it to open the correct file i want to engrave.  
Also i didnt notice if there is a way to also auto-start the engraving when the software/file open.

Thank you for any help/advice

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 27, 2021, 4:46pm UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/2 "2021-09-27T16:46:07Z")

</div>

The Python interface file attached in that topic includes code that will import a file and run it. (SendUDP also does this, if you specify the file to load as an argument)

I’ve updated the python script attached to the above FAQ entry to include the ‘START’ command (which is now supported)

---

<div class="post-metadata">

**Author:** ![kmarko](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/k/898d66/32.png) [@kmarko](https://forum.lightburnsoftware.com/u/kmarko)\
**Post date:** [September 28, 2021, 5:45am UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/3 "2021-09-28T05:45:06Z")

</div>

Thank you for the reply, could you please explain, how to specify the argument in SendUDP?

Also, where do i put the python code/ where do i run it?

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 29, 2021, 9:47pm UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/4 "2021-09-29T21:47:27Z")

</div>

With SendUDP, you just follow it with the name of the file to load, like this:

`SendUDP MyProject.lbrn`

For the Python code, you would need to integrate the contents of the example script with something else. It’s not meant to be stand-alone, just an example to show how the UDP commands are used. If you aren’t familiar with Python programming / scripting, you’ll need to have someone help you set that up.

---

<div class="post-metadata">

**Author:** ![kmarko](https://forum.lightburnsoftware.com/letter_avatar_proxy/v4/letter/k/898d66/32.png) [@kmarko](https://forum.lightburnsoftware.com/u/kmarko)\
**Post date:** [September 30, 2021, 8:29am UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/5 "2021-09-30T08:29:03Z")

</div>

I managed to open/load file with SendUDP (just like you said). Is there any option for me to start the laser with SendUDP, or do I have to run the Python code?

---

<div class="post-metadata">

**Author:** ![LightBurn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/lightburn/32/75577_2.png) [@LightBurn](https://forum.lightburnsoftware.com/u/LightBurn)\
**Post date:** [September 30, 2021, 1:07pm UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/6 "2021-09-30T13:07:29Z")

</div>

SendUDP does not have any option to start the file unfortunately - you’d have to use the Python code.

---

<div class="post-metadata">

**Author:** ![system](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/system/32/64335_2.png) [@system](https://forum.lightburnsoftware.com/u/system)\
**Post date:** [October 30, 2021, 1:08pm UTC](https://forum.lightburnsoftware.com/t/command-line-interface-problems/48666/7 "2021-10-30T13:08:18Z")

</div>

Closed on October 30, 2021, 1:08pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
