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] Communicating with modem



On Thu, 21 Aug 2008, Bob Estes wrote:

David Forrest wrote:
On Sat, 16 Aug 2008, Bob Estes wrote:

David Forrest wrote:
On Tue, 12 Aug 2008, Bob Estes wrote:

<snipped>

Thanks for your reply, David.

I followed your instructions, and got the program to communicate with my modem. It turns out that I wasn't telling it the right port designation. My modem is on ttyS0. After installing the new modem, I rebooted the computer, but hylafax did not start as you say it does on your system. The command "which faxgetty" gives the following answer:

[root@robert-smbyo082 bob]# which faxgetty
/usr/sbin/faxgetty
[root@robert-smbyo082 bob]#

The command "ps ax1 | grep faxgetty" gives the following answer:

[root@robert-smbyo082 bob]# ps ax1 | grep faxgetty
17077 pts/3    R+     0:00 grep --color faxgetty
[root@robert-smbyo082 bob]#

How do I start hylafax so that I can send and receive faxes?

Thanks in advance,

Bob



Once faxgetty is running it will fork for receiving faxes and continue running. You could just start it from the command line (suid) like this:
]# faxgetty ttyS0
or, as I did for quite a while from /etc/rc.d/rc.local. The problem with either of these is that if it dies for some reason, you will be unable to receive faxes until you restart it. Having it respawn from your inittab automatically is much better. What does your /etc/inittab look like?


hfaxd should be running also. Check by running faxstat  (as any user).
or: ps ax | grep hfaxd

Dave

David Forrest                     e-mail   drf@xxxxxxxxxxxxx
Maple Park Development Corporation  http://www.maplepark.com
St. Louis, Missouri


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


Here's the response for those last two commands:

[root@robert-smbyo082 bob]# faxstat
HylaFAX scheduler on robert-smbyo082: Running
[root@robert-smbyo082 bob]# ps ax | grep hfaxd
5525 ?        Ss     0:00 hfaxd -i hylafax
24993 pts/3    R+     0:00 grep --color hfaxd
[root@robert-smbyo082 bob]#


Here's the contents of /etc/inittab:


#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@xxxxxxxxxxxxxxxxxxxxx>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by Mandriva Linux are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels 1:2345:respawn:/sbin/mingetty tty1 2:2345:respawn:/sbin/mingetty tty2 3:2345:respawn:/sbin/mingetty tty3 4:2345:respawn:/sbin/mingetty tty4 5:2345:respawn:/sbin/mingetty tty5 6:2345:respawn:/sbin/mingetty tty6

# Single user mode
~~:S:wait:/bin/sh
# FaxGetty Entry


Does this help any?



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


Great Bob, we're almost there. Now just add the following two lines to /etc/inittab (after the # FaxGetty Entry);


# run faxgetty on ttyS0
mo:2345:respawn:/usr/sbin/faxgetty ttyS0

(the mo is just an identifier, unique from others. I use mo to stand for modem. something is needed there anyway.

Then run faxstat and we'll see if you're in business. Assuming the modem initializes, we should be. Let me know.

Dave


David Forrest e-mail drf@xxxxxxxxxxxxx Maple Park Development Corporation http://www.maplepark.com St. Louis, Missouri


____________________ 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