Send commands to server