Roku HD110 User Guide - Page 101

To begin testing your custom script:, Multi-run script limitations, Linux shell, RUN.BRS, script

Page 101 highlights

To begin testing your custom script: 1 Copy your content and script file to the CF/SD card. 2 Name your script RUN.BRS. You can call it anything, as long as it's not AUTORUN.BRS, so it doesn't start automatically. 3 Add debug = true as the first line of your script. This command enables you to see output from the print statements you added to your script. 4 Insert your CF/SD card into your BrightSign and add power. 5 When the Roku prompt appears, type the following: script run.brs Multi-run script limitations Currently when a script terminates, BrightSign does not free resources allocated by Roku Objects. This means that if you use the script shell command to run a script, and the script exits, you may not be able to run it again successfully unless you reboot your BrightSign between script tests. Linux shell BrightSign has a Linux shell that you can access via the serial port. To access the Linux shell, enter the following at the Roku prompt: exit When you are done using the Linux shell, enter the following at the Linux prompt: reboot 95 • •

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118

95
To begin testing your custom script:
1
Copy your content and script file to the CF/SD card.
2
Name your script
RUN.BRS
. You can call it anything, as long as it’s not AUTORUN.BRS, so it
doesn’t start automatically.
3
Add
debug = true
as the first line of your script. This command enables you to see output
from the print statements you added to your script.
4
Insert your CF/SD card into your BrightSign and add power.
5
When the Roku prompt appears, type the following:
script run.brs
Multi-run script limitations
Currently when a script terminates, BrightSign does not free resources allocated by Roku Objects.
This means that if you use the
script
shell command to run a script, and the script exits, you may
not be able to run it again successfully unless you reboot your BrightSign between script tests.
Linux shell
BrightSign has a Linux shell that you can access via the serial port. To access the Linux shell, enter
the following at the Roku prompt:
exit
When you are done using the Linux shell, enter the following at the Linux prompt:
reboot