# Controllable script sent through Primary Client

**URL:** <https://forum.universal-robots.com/t/controllable-script-sent-through-primary-client/25374>\
**Category:** URScript\
**Created:** [December 1, 2022, 2:50am UTC](https://forum.universal-robots.com/t/controllable-script-sent-through-primary-client/25374 "2022-12-01T02:50:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gargsonu0414](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gargsonu0414](https://forum.universal-robots.com/u/gargsonu0414)\
**Post date:** [December 1, 2022, 2:50am UTC](https://forum.universal-robots.com/t/controllable-script-sent-through-primary-client/25374/1 "2022-12-01T02:50:47Z")

</div>

Hello,

I am trying to send entire .script through Primary Client (30001 port) using a ROS service. The ROS service accepts a script with ‘def’ and ‘end’ and sends it on port 30001 via TCP socket. I want to add an additional functionality to control the execution on this script, for example, I would like to start/pause/stop this script using ROS. It would be very helpful if nyone who has thought on the same lines can provide some inputs.

Thanks in advance,
