Stop the dance!
Your sister was at the hospital, but now she's fine, awfully, you lost a day of work, one of your most important days.
You work at your local television, and they have a contest, called "Stop the dance!", what is it about?: People is dancing, they have a big screen in the wall, while it says "Dance!", they have to dance, if it says "Stop!", they must stop, if you move, you lose.
You don't have internet at the studio, so you use some strange offline data sharing method. The day you weren't there, another programmer came, such a silly programmer! He made a "Reciever" program, basically, gets data, processes data and prints data in the Big Screen Wall.
The programmer was bored, so he made a way to get data, well, you don't know what way he choose! (Author comment: Let's assume he made all the possible ways. Cya.) Now you have to make a sender program, in any language, that sends data to that program using the protocol specified under this section.
You are an expert code golfer, so you decide that you must make the shortest code possible. (Another author comment: Any lang is allowed. Cya.)
How did I came out with this idea?
Having a shower, my friend...
You must make the shortest (and winner) code possible, that sends data to the reciever, using this protocol:
The reciever must recieve:
$displaytext:"<text here>";$instnm:<integer here>;
$displaytext corresponds to what it is going to be displayed on the Big Screen Wall.
$instnm corresponds to the number of the instruction, the count of things displayed, starts from 1.
Your program may take an input, and send the data, in any way (except the ones in Rules) to the Reciever. Remember there's no internet.
The winner will be the user with shortest bytes of code.
As a good code golfer, you may not:
- You can't use program arguments to send the data.
- It must be an application.
- If you apply for the bonus, mind you have to make both programs, if not, just the sender.
- The string you have to send it has to be STRICT, no different ones, if not, unvalid answer. (I decided to call that "Strict JASON Protocol", get the joke?)
You can make the reciever program, and you get -1 byte. Not much, but k. (In bytes, you must not decrement your byte result, you must do: "n Bytes + Bonus")
Example Input and Output
From Sender program:
Inbetween both commands
In Reciever program:
Send data between two programs, without internet connection.
Edit: i can't post an example answer, because then i can give ideas of how to do this codegolf/puzzle, while the ideas are limited, i'm finding for the creativity of the user.