HylaFAX The world's most advanced open source fax server

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

[hylafax-users] jobcontrol script not working



Hi,

I'm still running into problems getting this jobcontrol thing working.
Basically assigning a user to a modem.

I created a file in /var/spool/fax/etc  called  "jobcontrol"
-
#!/bin/sh
. etc/setup.cache
. bin/common-functions
QFILE=sendq/q$1
parseQfile
case "$owner" in
        george) echo "Modem: ttyS0";;
        faxadmin) echo "Modem: ttyS1";;
        *) echo "Modem: any";;
esac
exit 0
-

And I added this entry in /var/spool/fax/config
-
JobControlCmd:          etc/jobcontrol
-

the file jobcontrol is  chmod a+x, and chown uucp:uucp
When I send a fax with user george it tries on ttyS0, fails,
then tries on ttyS1. My desired action would be that it should
keep retrying on ttyS0.

Am I missing any options somewhere ? I'm using hylafax+ 5.2.1

Thanks

-- 
"Nothing is impossible for the person that doesn't have to do it"
"The probability of anything happening is in inverse ratio to its desirability"
--
George H
george.dma@xxxxxxxxx


____________________ 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@xxxxxxxxx*




Project hosted by iFAX Solutions