HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] State inquiry



Hi,

How can you inquire the state of each fax modem. Right now I do the
something like the following but it is not perfect (possible race
condition). 

for i in `ps -eaf | grep faxgetty | awk '{print $2}'`; do 
   grep -i "FaxGetty\[$i\]: STATE" /var/log/messages | tail -1 
done

Is there a way to query the backend and get the true state of each
modem. 

Thanks in advance

Pascal

-- 
Pascal DeMilly <list.hylafax@xxxxxxxxxxxxxx>



____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxxxxx*




Project hosted by iFAX Solutions