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



George H wrote:
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.

One useful little shell scripting trick that I use for debugging is this...


At the beginning of the script, after the shebang (#!/bin/sh)... put this:

set -x
exec 2> /tmp/mydebugfile$$.out

And then you re-run the process that will trigger that shell script. This will send the -x output to the /tmp/mydebugfile<pid>.out file. Then you can open up that file and watch the script execution to see what the problem is.

Thanks,

Lee.


____________________ 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