Normally to query a modem for it's firmware version i'd fire up minicom and enter 'ati', however I'm working on a script which must upgrade firmware on attached modems. I don't want to pop minicom up in the middle of the script to bother some user to verify the firmware version. Has anyone run across a command line tool which will send hayes commands to a modem and receive a response in a noninteractive manner?
I'm new to scripting, so forgive me for asking, but could I use a named pipe to send the command to /dev/modem (maybe using cat or echo), and somehow read a response from another pipe? I'm stuck!
I'm new to scripting, so forgive me for asking, but could I use a named pipe to send the command to /dev/modem (maybe using cat or echo), and somehow read a response from another pipe? I'm stuck!