HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] jobcontrol script not working
I think I know what the problem is.. the variables are not matching.
If I use "uucp" inside the case statement then it works. Which kind
of makes sense since i'm using an email-to-fax gateway and all jobs
are owned by uucp.
ok so I tried using $mailaddr and puting "george@xxxxxxxxxxxx" but
doesn't work. The real problem is that I don't know how $mailaddr
looks like so that I can match it with something. I have a feeling
that $mailaddr may look like "George <george@xxxxxxxxxxxx>". I tried
using "*george*" in the case statement but no luck.
On Jan 8, 2008 8:56 AM, George H <george.dma@xxxxxxxxx> wrote:
> 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*