Script --- read from RS232

Hi, i need to write one command from serial port, then read the answer from serial port too.
i need the answer from serial port to do some action …

How i can do with script??


Thanks

Mark74