Automate conversations with a modem or serial device. Commonly used to establish PPP (Point-to-Point Protocol) connections. More information: https://manned.org/chat.8.
chat '{{expect_send_pairs}}'
chat -f '{{path/to/chat_script}}'
chat -t {{timeout_in_seconds}} '{{expect_send_pairs}}'
syslog:chat -v '{{expect_send_pairs}}'
chat -r {{path/to/report_file}} '{{expect_send_pairs}}'
\T in the script:chat -T '{{phone_number}}' '{{"ATDT\\T CONNECT"}}'
chat 'ABORT "{{error_string}}" {{expect_send_pairs}}'