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] faxsetup issues (for developers)




Note followups should be to hylafax-devel@hylafax.org, and the reply-to header
has been set accordingly.

>>>>> On Fri, 25 Aug 2000, "Giulio" == Giulio Orsero wrote:

  Giulio> faxsetup 4.1beta2 and even latest cvs:

  Giulio> 1)
  Giulio> It forces you to enter an "area code" and a "long distance prefix".
  Giulio> This 2 items have no meaning in Italy, so I have to OK and then edit
  Giulio> config by hand to blank them.
  Giulio> Could you allow users to leave/set them blank?

Sounds fair. Patches welcomed ;-)

  Giulio> 2)
  Giulio> It tries to detect if the fax servers already running but it fails if
  Giulio> there are processes that happens to have the same name in nother
  Giulio> "context", ie:

  Giulio> You seem to be running FlexFAX (there are faxd processes).
  Giulio> Is it ok to terminate these processes (25871 26356) [yes]? no

  Giulio> 25871 pts/0    S      0:00 /bin/bash -c for i in util faxalter 
faxcover
  Giulio> faxd fax
  Giulio> 

  Giulio> I agree this is not a common case :), so maybe it's not worth the
  Giulio> effort.

I'm sure SOMEONE would like to fix this one for you ;-) Anyone care to propose a souped up findproc() for faxsetup? Currently we have:

    findproc()
    {
        # NB: ps ax should give an error on System V, so we try it first!
        pid="`ps ax 2>/dev/null | $AWK \"\
                /[\/ (]$1[ )]/  {print \\$1;}
                /[\/ ]$1\$/     {print \\$1;}\"`"
        test "$pid" ||
            pid="`ps -e 2>/dev/null | $AWK \"/ $1[ ]*\$/ {print \\$1;}\"`"
        echo "$pid"
    }

invoked as:

    FAXD="`findproc faxd`"
    if [ "$FAXD" ]; then
        echo ""
        echo "You seem to be running FlexFAX (there are faxd processes)."

which gets fooled as Giulio so rightly notices. Oh, and by the way, I fixed
that errant "FlexFAX" in CVS just now ;-)

-d




____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions