@Lucia-Touma i suggest python of some kind.
Yes, if your script includes an infinite loop or never stops for other reasons the boot process will not end and the led kepps blinking.
You can tell the rc.local file that this script will not end by attaching an & behind the command.
E.g.: python /path/to/you/file.py &
Looks like your connection to Community was lost, please wait while we try to reconnect.