# Run multiple comands in one line in URScript

**URL:** <https://forum.universal-robots.com/t/run-multiple-comands-in-one-line-in-urscript/34104>\
**Category:** Robot Communication\
**Created:** [May 8, 2024, 11:40am UTC](https://forum.universal-robots.com/t/run-multiple-comands-in-one-line-in-urscript/34104 "2024-05-08T11:40:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepejose56y](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pepejose56y](https://forum.universal-robots.com/u/pepejose56y)\
**Post date:** [May 8, 2024, 11:40am UTC](https://forum.universal-robots.com/t/run-multiple-comands-in-one-line-in-urscript/34104/1 "2024-05-08T11:40:32Z")

</div>

Hello, I’m using SocketTest to communicate with a UR3 using port 30001 (primary interface). Individual command sending works perfectly  
 ![Captura de pantalla 2024-05-08 132852](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/2/28f110a1a5e8535a0c823f57910cf6c9b906f042.png)

but when I try to send a complete URScript program, it does nothing.

 ![b](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/d/dfd4a281bd4a558ce5a9bd9b38e0f13b8330106e.png)  
[comunication guide](https://forum.universal-robots.com/t/communication-interfaces/29)

I’ve tried multiple ways of writing that program in a single line, and none worked.

 ![eeeeeee](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/69b77d02d243b7213810909f370ea005279bba0c.png)

I think the issue is that I’m not distinguishing between lines when writing the different commands because when I tested running the same program in a single script on the actual robot, it only executed the first command and ignored the rest.

 ![fdgdfgdf](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/0/0fa6000b05df462f76d72ad92ff6aadb260d8ab0.jpeg)

My question is: Is there any way to write a complete URScript program in a single line of text, to be able to send it through SocketTest?

Thanks, greetings from Spain

---

<div class="post-metadata">

**Author:** ![paulaluque2000](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@paulaluque2000](https://forum.universal-robots.com/u/paulaluque2000)\
**Post date:** [May 17, 2024, 8:17am UTC](https://forum.universal-robots.com/t/run-multiple-comands-in-one-line-in-urscript/34104/2 "2024-05-17T08:17:32Z")

</div>

Hello,

Maybe this help you:  
[What’s the best way to send a whole UR Script to the Robot or to start different scripts on the UR? (robotiq.com)](https://dof.robotiq.com/discussion/1412/whats-the-best-way-to-send-a-whole-ur-script-to-the-robot-or-to-start-different-scripts-on-the-ur)

Best regards, Paula.
