Portál AbcLinuxu, 26. dubna 2024 07:44
Sending to fax using: /usr/bin/sendfax -n -h '/usr/sbin/hylafax' -d 'Michal.sk'@'4524049' -x '' -c '' -f 'ondrej@pczona.sk' '/tmp/kde-ondrik/kdeprint_WVRv8NE' sendfax: Unused options after last destination. usage: sendfax [options] [files] (Read the manual page; it's too complicatedKde je chyba. Hylafax server sa mi spúšta ako ja zastavuje no problem pozadaní v mdk 9.1!!
faxaddmodem
som vytvoril súbor: configttyS0.txt
ktor0ho obsah je správny? mám class1 interný conexant modem:
CountryCode: 421 AreaCode: 52 FAXNumber: +421XXXXXXXXX LongDistancePrefix: 00421 InternationalPrefix: 00 DialStringRules: etc/dialrules ServerTracing: 1 SessionTracing: 11 RecvFileMode: 0600 LogFileMode: 0600 DeviceMode: 0600 RingsBeforeAnswer: 1 SpeakerVolume: medium GettyArgs: "-h %l dx_%s" LocalIdentifier: "NothingSetup" TagLineFont: etc/lutRS18.pcf TagLineFormat: "From %%l|%c|Page %%P of %%T" MaxRecvPages: 25 # # # Modem-related stuff: should reflect modem command interface # and hardware connection/cabling (e.g. flow control). # ModemType: Class1 # use this to supply a hint ModemRate: 19200 # rate for DCE-DTE communication ModemFlowControl: rtscts # default # ModemNoFlowCmd: AT&K0 # setup no flow control ModemHardFlowCmd: AT&K3 # setup hardware flow control ModemSoftFlowCmd: AT&K4 # setup software flow control ModemSetupDTRCmd: AT&D2 # setup so DTR drop resets modem ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not) # ModemMfrQueryCmd: !Rockwell ModemModelQueryCmd: !RC288DPi ModemRevQueryCmd: ATI3 # product information ModemResultCodesCmd: ATX3 # TOTO som tam pridal ja !!!!!!!!!!!!!!!!!!!!!! # ModemDialCmd: ATDT%s # T for tone dialingtoto mám nastavené v init tab, aby mi fax zdvihol:
inittab= # 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 respawn:/usr/sbin/faxgetty ttySHSF0 # toto som tam pridal ja!!!!!!!!!!!Ako je to s prijímaním FAXU. Nikdy som to neviel, predpokladám , že musí bežať démon hylafaxu. Kde sa tie faxy ukladajú, ako to prijatie prebehne. Používate neaký program v ktorý beží v system tray? Vopred dakujem za pomoc. OndrO www.PCZONA.sk
/usr/bin/sendfax -d '4524049' '/tmp/kde-ondrik/kdeprint_WVRv8NE'Každopádně tím -h se zadává adresa serveru, ne nějaké jméno souboru. Implicitní je localhost.
[root@mdk ondrik]# faxaddmodem Serial port that modem is connected to []? ttySHSF0 Ok, time to setup a configuration file for the modem. The manual page config(5F) may be useful during this process. Also be aware that at any time you can safely interrupt this procedure. Reading scheduler config file /var/spool/fax/etc/config. Hey, there is an existing config file /var/spool/fax/etc/config.ttySHSF0... The non-default server configuration parameters are: CountryCode: 421 AreaCode: 52 FAXNumber: +421524566215 LongDistancePrefix: 00 InternationalPrefix: 0 DialStringRules: /etc/dialrules SessionTracing: 11 RingsBeforeAnswer: 1 SpeakerVolume: off GettyArgs: "-h %l dx_%s" LocalIdentifier: "NothingSetup" TagLineFont: etc/lutRS18.pcf TagLineFormat: "From %%l|%c|Page %%P of %%T" MaxRecvPages: 25Po zadaní:
[root@mdk ondrik]# /usr/bin/sendfax -d '0908082566' '/tmp/kde-ondrik/kdeprint_BVb5ZZv' 550 Unable to link cover page document /tmp/doc22.ps to /docq/doc5.cover: File exists.Ale čo sa mi podarilo zisťiť je to, že mi odosiela fax po zadaní príkazu
/usr/bin/fax NAME='Ondrej Sýkora' DEV='modem' PAGE=a4 FROM='4566215' send '0908XXXXXX' '/tmp/kde-ondrik/kdeprint_BVb5ZZv'Tak, sa mi zdá že je to jednoduchsie a hlavne že to spolahlivo funguje vždy. Ako ten fax príjmem? Musím mať zapnutý Hylafax server system? Ako zistím, že prijímanie je v poradku, musí mi niekto ten fax na číslo poslať? V pozadí mi bežia programy: /sbin/mingetty hfaxd faxq firewalld ešte toto mám štandartne nastavené v inittab,
inittab= # 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 tty6Ako to mám vyskúšať?
# fax getty (hylafax) mo:35:respawn:/usr/lib/fax/faxgetty /dev/ttyS0SuSE 9.0, připojen externí modem (RS-232) a příjem je OK
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.