Run generateScript after booting robot

How can I run an urscript in my urcap directly, after the robot booted?

generateScript in Installation Node is executed after program is running.

I want to run this thread after robot is booting.
thread myThread():
while (True):
// Do some stuff
end
end
run Timer_Thread()

Hi @bernd.heinzmann,

You can send it to the controller on port 30001. The operator of the robot will be able to stop that program by the stop/pause button or starting another program.
I have a snippet from a bash script for reference:

printf "def prog_test():\n%s\nend\n" "$(cat $1)" | nc localhost 30001

So your script should be incapsulated in a function definition. Else the controller will interpret one line at a time.

Ebbe