Under Linux you can use HylaFAX; there are some script you can learn from listed in their Links page.
HTH, Valerio
In reply to Re: Fax modules? by valdez in thread Fax modules? by bobdeath