In Harry Potter and the Chamber of Secrets, Ginny Weasley carries out Tom Riddle's plan by proxy and apparently leads the Basilisk to attack four Muggleborns and Filch's cat Mrs Norris in the castle.
‘Ginny Weasley opened the Chamber of Secrets. She strangled the school roosters and daubed threatening messages on the walls. She set the serpent of Slytherin on four Mudbloods, and the Squib’s cat.’
‘No,’ Harry whispered.
‘Yes,’ said Riddle, calmly. ‘Of course, she didn’t know what she was doing at first ...’
Chamber of Secrets - page 229 - Bloomsbury - chapter 17, The Heir of Slytherin
How was Ginny able to direct the actions of the Basilisk without using her sight (so the Basilisk wouldn't be able to look her in the eyes), or without being killed or petrified herself?
Side note: Tom Riddle described Ginny as being in "a sort of a trance" while she was carrying out Riddle's orders -- would this make her more or less aware of the dangers of the Basilisk?
★ I prefer a canon-based answer if possible (the Harry Potter novels, the three supplemental books, quotes from J.K. Rowling, or Pottermore information) and do not prefer an answer from either the HP Wikia or the Wikipedia.