How to test if a modem is on/off inside a script?
Posted on 2002-07-25
I need to test inside a shell script (UX10.20) is a modem is on/off. If it is off, I have to do some actions (Send an email...).
That script will b excuted via cron, every minute.
1. What is the command to check the modem on/off? (Is it cu -l /dev/... ? )
How do I do it inside a script??
2. If u can, provide me the full script. It has to do a very simple action:
Check if the modem is active (On electricity...), if not send an email to some people.
Many thanks, leee