![]() |
Hello, Thank God someone responded! This is one slow thread. >Nico writes: > Gentleman with the SUSE distributions: most of the HylaFAX RPM distributions >were compiled on RedHat machines. What does this mean? HylaFax was not tested on SuSE or that most HylaFaxers use RedHat? >Can you compile the HylaFAX from source on your systems and >let us know how weel this works? Didn't I install the source and install it via the SuSE package? >Also, try running "sh -x probemodem" instead of just probemodem, >so we can see which darn stty command is failing. OK Nico, here is what I did: Ran the "sh -x probemodem" command It asked me "Serial port that modem is connected to []? + read TTY" I use /dev/modem which is symobolically linked to the ttyS1 port So I typed in "modem", so text started scrolling and scrolling without stopping. Evidently, something was not working right with the modem. I did a Ctrl-C to stop it. Cut and pasted the results into a file named probe_modem.txt and attached it to this email. To be on the safe side, I again did the "sh -x probemodem" command. This time I typed in "ttyS1" in response to the query. Again some process started up, text kept scrolling and scrolling. I did a Ctrl-C to stop it, cut the results and pasted them into a file named probe_ttyS1.txt Due to the length, I felt it better to attach the results in files. By the way, in var/log/messages I get: <snip> Dec 21 10:45:57 george kernel: tty01 at 0x02f8 (irq = 3) is a 16550A Dec 21 10:46:01 george /usr/sbin/cron[148]: (CRON) STARTUP (fork ok) Dec 21 10:46:03 george FaxQueuer[185]: Missing ':' separator in modem class specification Dec 21 10:46:03 george FaxQueuer[185]: HylaFAX (tm) Version 4.0pl2 Dec 21 10:46:03 george FaxQueuer[185]: Copyright (c) 1990-1996 Sam Leffler Dec 21 10:46:03 george FaxQueuer[185]: Copyright (c) 1991-1996 Silicon Graphics, Inc. Dec 21 10:46:03 george HylaFAX[186]: HylaFAX INET Protocol Server: restarted. Dec 21 10:46:03 george HylaFAX[186]: HylaFAX Old Protocol Server: restarted. Dec 21 10:46:03 george HylaFAX[186]: HylaFAX SNPP Protocol Server: restarted. Dec 21 10:46:09 george login: pam_unix session started for user root, service login <snip> Look forward to any insite George -----BEGIN PGP SIGNED MESSAGE----- On Tue, 21 Dec 1999, George wrote: >> Hello, (sent both to Christoph and HylaFax thread) >> Christoph wrote: >> > i, >> > AFAIK the problem with stty arises if you have an old stty, >> > and a new kernel (don't remember the versions), cause the interface >> > to the serial devices changed a little, so stty has problems. >> > Getting the sources for stty and recompiling should fix this, >> > or get a newer stty for your system. >> > Christoph >> George writes: >> If your talking about the message "/bin/stty: standard input: unable to >> perform all requested operations" , well I'm getting that too. And I >> have a new Linksys 10/100 +56 K PCMCIA with SuSE 6.2, which means new >> sources.
bash-2.03# sh -x probemodem + SPOOL=/var/spool/fax + SBIN=/usr/sbin + SPEED= + '[' x '!=' x ']' + test -f /var/spool/fax/etc/setup.cache + . /var/spool/fax/etc/setup.cache ++ AFMDIR=/usr/share/hylafax/afm ++ AWK=/usr/bin/gawk ++ BIN=/usr/bin ++ CAT=/bin/cat ++ CHGRP=/bin/chgrp ++ CHMOD=/bin/chmod ++ CHOWN=/bin/chown ++ CP=/bin/cp ++ DPSRIP=/usr/local/sbin/ps2fax.exe ++ ECHO=/bin/echo ++ GREP=/usr/bin/grep ++ GSRIP=/usr/bin/gs ++ IMPRIP=/usr/lib/print/psrip ++ LIBDATA=/usr/lib/fax ++ LIBEXEC=/usr/lib/fax ++ LN=/bin/ln ++ MANDIR=/usr/man ++ MKFIFO=/usr/bin/mkfifo ++ MV=/bin/mv ++ PATH=/usr/sbin:/bin:/usr/bin:/etc:/usr/local/bin ++ PATHEGETTY=/usr/sbin/egetty ++ PATHGETTY=/usr/sbin/mgetty ++ PATHVGETTY=/usr/sbin/vgetty ++ PSPACKAGE=gs ++ RM=/bin/rm ++ SBIN=/usr/sbin ++ SCRIPT_SH=/bin/bash ++ SED=/usr/bin/sed ++ SENDMAIL=/usr/sbin/sendmail ++ SPOOL=/var/spool/fax ++ TIFFBIN=/usr/bin ++ UUCP_LOCKDIR=/var/lock ++ UUCP_LOCKTYPE=ascii + . /var/spool/fax/etc/setup.modem + SH=/bin/bash + OUT=/tmp/probemodem1210 + SVR4UULCKN=/usr/lib/fax/lockname + ONDELAY=/usr/lib/fax/ondelay + CAT=/bin/cat -u + rm -rf /tmp/probemodem1210 + set -o noclobber + set +o noclobber + '[' -z '' -o '!' -c /dev/ ']' + '[' '' '!=' '' ']' + prompt 'Serial port that modem is connected to []?' + echo -n 'Serial port that modem is connected to []? ' Serial port that modem is connected to []? + read TTY modem + '[' -z modem -o '!' -c /dev/modem ']' + '[' '!' -d /var/lock ']' ++ ttyLocks modem ++ echo /var/lock/LCK..modem + LOCKX=/var/lock/LCK..modem ++ ttyAliases modem ++ echo /dev/modem + DEVS=/dev/modem ++ ttyDev modem ++ echo /dev/modem + tdev=/dev/modem + '[' -f /var/lock/LCK..modem ']' + JUNK=/var/lock/LCK..modem /tmp/probemodem1210 + trap 'rm -f /var/lock/LCK..modem /tmp/probemodem1210; exit 1' 0 1 2 15 ++ expr ' 1210' : '.*\(..........\)' + LOCKSTR= 1210 + echo ' 1210' + fuser -k /dev/modem + cat Hmm, there does not appear to be an fuser command on your machine. This means that I am unable to insure that all processes using the modem have been killed. I will keep going, but beware that you may have competition for the modem. + cat Now we are going to probe the tty port. This takes a few seconds, so be patient. Note that if you do not have the modem cabled to the port, or the modem is turned off, this may hang (just go and cable up the modem or turn it on, or whatever). + '[' -x /usr/lib/fax/ondelay ']' ++ ttyStty /dev/modem ++ echo /bin/stty + STTY=/bin/stty + echo '' + '[' -z '' ']' + printf 'Probing for best speed to talk to modem:' Probing for best speed to talk to modem:++ ttySpeeds /dev/modem ++ speeds= ++ '[' -z '' ']' ++ onDev /bin/stty 38400 ++ speeds= 38400 ++ onDev /bin/stty 19200 ++ speeds= 38400 19200 ++ onDev /bin/stty 9600 ++ speeds= 38400 19200 9600 ++ onDev /bin/stty 4800 ++ speeds= 38400 19200 9600 4800 ++ onDev /bin/stty 2400 ++ speeds= 38400 19200 9600 4800 2400 ++ onDev /bin/stty 1200 ++ speeds= 38400 19200 9600 4800 2400 1200 ++ echo 38400 19200 9600 4800 2400 1200 + SPEEDS=38400 19200 9600 4800 2400 1200 + printf ' 38400' 38400+ SendToModem AT + sleep 1 ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + test OK = OK + break + '[' OK '!=' OK ']' + echo ' OK.' OK. + RESULT= + '[' -z '' ']' + nagpid=1250 + trap 0 1 2 15 + true + sleep 10 + trap 'rm -f $JUNK; kill 1250 $catpid; exit 1' 0 1 2 15 + SendToModem 'AT+FCLASS=?' + COMMAND=AT+FCLASS=? + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/modem' + '[' -c = -c ']' + shift ++ echo 1256 ++ /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/modem >/tmp/probemodem1210' + catpid=1256 + sleep 2 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf '\r' + sleep 1 + printf 'ATQ0V1E1\r' + sleep 1 + printf 'AT+FCLASS=?\r' + sleep 1 + kill -9 1256 + catpid= ++ echo 'AT+FCLASS=?' ++ /usr/bin/sed -e 's/[*&\\$]/\\&/g' + pat=AT+FCLASS=? ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/AT+FCLASS=?/{n;s/ *$//;p;q;}' ++ /usr/bin/sed 's/+F.*=//' + RESPONSE=0,1,2 + kill 1250 + trap 'rm -f $JUNK; test "$catpid" && kill $catpid; exit 1' 0 1 2 15 + sleep 1 [1]+ Terminated ( trap 0 1 2 15; while true; do sleep 10; echo ""; echo "Hmm, something seems to be hung, check your modem e h?"; done ) ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + '[' -z 0,1,2 ']' + '[' -z OK ']' + echo '' + '[' OK = OK ']' ++ echo 0,1,2 ++ sed -e 's/[()]//g' + common 1+2 + echo 'This looks like a Class 1+2 modem.' This looks like a Class 1+2 modem. + echo '' + TryCommonCommands + Try ATI0 + TRYCOMMAND=ATI0 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/modem' + '[' -c = -c ']' + shift ++ echo 1282 ++ /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/modem >/tmp/probemodem1210' + catpid=1282 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI0\r\r' + sleep 1 + kill -9 1282 + catpid= + sleep 1 ++ echo ATI0 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI0 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI0/{n;s/ *$//;p;q;}' + RESPONSE=LF560MX VER 2.01 V.90 (VER 1.14 TBR21 V.2) ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI0 RESULT = "OK" RESPONSE = "LF560MX VER 2.01 V.90 (VER 1.14 TBR2 1 V.2)"\n' ATI0 RESULT = "OK" RESPONSE = "LF560MX VER 2.01 V.90 (VER 1.14 TBR21 V.2)"+ Try ATI1 + TRYCOMMAND=ATI1 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/modem' + '[' -c = -c ']' + shift ++ echo 1324 ++ /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/modem >/tmp/probemodem1210' + catpid=1324 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI1\r\r' + sleep 1 + kill -9 1324 + catpid= + sleep 1 ++ echo ATI1 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI1 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI1/{n;s/ *$//;p;q;}' + RESPONSE=C936 ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI1 RESULT = "OK" RESPONSE = "C936"\n' ATI1 RESULT = "OK" RESPONSE = "C936" + Try ATI2 + TRYCOMMAND=ATI2 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/modem' + '[' -c = -c ']' + shift ++ echo 1344 ++ /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/modem >/tmp/probemodem1210' + catpid=1344 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/modem /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI2\r\r' + sleep 1 + kill -9 1344 + catpid= + sleep 1 ++ echo ATI2 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI2 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI2/{n;s/ *$//;p;q;}' + RESPONSE=OK ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI2 RESULT = "OK" RESPONSE = "OK"\n' ATI2 RESULT = "OK" RESPONSE = "OK"
bash-2.03# sh -x probemodem + SPOOL=/var/spool/fax + SBIN=/usr/sbin + SPEED= + '[' x '!=' x ']' + test -f /var/spool/fax/etc/setup.cache + . /var/spool/fax/etc/setup.cache ++ AFMDIR=/usr/share/hylafax/afm ++ AWK=/usr/bin/gawk ++ BIN=/usr/bin ++ CAT=/bin/cat ++ CHGRP=/bin/chgrp ++ CHMOD=/bin/chmod ++ CHOWN=/bin/chown ++ CP=/bin/cp ++ DPSRIP=/usr/local/sbin/ps2fax.exe ++ ECHO=/bin/echo ++ GREP=/usr/bin/grep ++ GSRIP=/usr/bin/gs ++ IMPRIP=/usr/lib/print/psrip ++ LIBDATA=/usr/lib/fax ++ LIBEXEC=/usr/lib/fax ++ LN=/bin/ln ++ MANDIR=/usr/man ++ MKFIFO=/usr/bin/mkfifo ++ MV=/bin/mv ++ PATH=/usr/sbin:/bin:/usr/bin:/etc:/usr/local/bin ++ PATHEGETTY=/usr/sbin/egetty ++ PATHGETTY=/usr/sbin/mgetty ++ PATHVGETTY=/usr/sbin/vgetty ++ PSPACKAGE=gs ++ RM=/bin/rm ++ SBIN=/usr/sbin ++ SCRIPT_SH=/bin/bash ++ SED=/usr/bin/sed ++ SENDMAIL=/usr/sbin/sendmail ++ SPOOL=/var/spool/fax ++ TIFFBIN=/usr/bin ++ UUCP_LOCKDIR=/var/lock ++ UUCP_LOCKTYPE=ascii + . /var/spool/fax/etc/setup.modem + SH=/bin/bash + OUT=/tmp/probemodem2511 + SVR4UULCKN=/usr/lib/fax/lockname + ONDELAY=/usr/lib/fax/ondelay + CAT=/bin/cat -u + rm -rf /tmp/probemodem2511 + set -o noclobber + set +o noclobber + '[' -z '' -o '!' -c /dev/ ']' + '[' '' '!=' '' ']' + prompt 'Serial port that modem is connected to []?' + echo -n 'Serial port that modem is connected to []? ' Serial port that modem is connected to []? + read TTY ttyS1 + '[' -z ttyS1 -o '!' -c /dev/ttyS1 ']' + '[' '!' -d /var/lock ']' ++ ttyLocks ttyS1 ++ echo /var/lock/LCK..ttyS1 + LOCKX=/var/lock/LCK..ttyS1 ++ ttyAliases ttyS1 ++ echo /dev/ttyS1 + DEVS=/dev/ttyS1 ++ ttyDev ttyS1 ++ echo /dev/ttyS1 + tdev=/dev/ttyS1 + '[' -f /var/lock/LCK..ttyS1 ']' + JUNK=/var/lock/LCK..ttyS1 /tmp/probemodem2511 + trap 'rm -f /var/lock/LCK..ttyS1 /tmp/probemodem2511; exit 1' 0 1 2 15 ++ expr ' 2511' : '.*\(..........\)' + LOCKSTR= 2511 + echo ' 2511' + fuser -k /dev/ttyS1 + cat Hmm, there does not appear to be an fuser command on your machine. This means that I am unable to insure that all processes using the modem have been killed. I will keep going, but beware that you may have competition for the modem. + cat Now we are going to probe the tty port. This takes a few seconds, so be patient. Note that if you do not have the modem cabled to the port, or the modem is turned off, this may hang (just go and cable up the modem or turn it on, or whatever). + '[' -x /usr/lib/fax/ondelay ']' ++ ttyStty /dev/ttyS1 ++ echo /bin/stty + STTY=/bin/stty + echo '' + '[' -z '' ']' + printf 'Probing for best speed to talk to modem:' Probing for best speed to talk to modem:++ ttySpeeds /dev/ttyS1 ++ speeds= ++ '[' -z '' ']' ++ onDev /bin/stty 38400 ++ speeds= 38400 ++ onDev /bin/stty 19200 ++ speeds= 38400 19200 ++ onDev /bin/stty 9600 ++ speeds= 38400 19200 9600 ++ onDev /bin/stty 4800 ++ speeds= 38400 19200 9600 4800 ++ onDev /bin/stty 2400 ++ speeds= 38400 19200 9600 4800 2400 ++ onDev /bin/stty 1200 ++ speeds= 38400 19200 9600 4800 2400 1200 ++ echo 38400 19200 9600 4800 2400 1200 + SPEEDS=38400 19200 9600 4800 2400 1200 + printf ' 38400' 38400+ SendToModem AT + sleep 1 ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + test OK = OK + break + '[' OK '!=' OK ']' + echo ' OK.' OK. + RESULT= + '[' -z '' ']' + nagpid=2551 + trap 0 1 2 15 + true + sleep 10 + trap 'rm -f $JUNK; kill 2551 $catpid; exit 1' 0 1 2 15 + SendToModem 'AT+FCLASS=?' + COMMAND=AT+FCLASS=? + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2557 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2557 + sleep 2 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf '\r' + sleep 1 + printf 'ATQ0V1E1\r' + sleep 1 + printf 'AT+FCLASS=?\r' + sleep 1 + kill -9 2557 + catpid= ++ echo 'AT+FCLASS=?' ++ /usr/bin/sed -e 's/[*&\\$]/\\&/g' + pat=AT+FCLASS=? ++ tr -ds '\015' '\012' ++ /usr/bin/sed 's/+F.*=//' ++ /usr/bin/sed -n '/AT+FCLASS=?/{n;s/ *$//;p;q;}' + RESPONSE=0,1,2 + kill 2551 + trap 'rm -f $JUNK; test "$catpid" && kill $catpid; exit 1' 0 1 2 15 + sleep 1 [1]+ Terminated ( trap 0 1 2 15; while true; do sleep 10; echo ""; echo "Hmm, something seems to be hung, check your modem e h?"; done ) ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + '[' -z 0,1,2 ']' + '[' -z OK ']' + echo '' + '[' OK = OK ']' ++ echo 0,1,2 ++ sed -e 's/[()]//g' + common 1+2 + echo 'This looks like a Class 1+2 modem.' This looks like a Class 1+2 modem. + echo '' + TryCommonCommands + Try ATI0 + TRYCOMMAND=ATI0 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2583 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2583 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI0\r\r' + sleep 1 + kill -9 2583 + catpid= + sleep 1 ++ echo ATI0 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI0 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI0/{n;s/ *$//;p;q;}' + RESPONSE=LF560MX VER 2.01 V.90 (VER 1.14 TBR21 V.2) ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI0 RESULT = "OK" RESPONSE = "LF560MX VER 2.01 V.90 (VER 1.14 TBR2 1 V.2)"\n' ATI0 RESULT = "OK" RESPONSE = "LF560MX VER 2.01 V.90 (VER 1.14 TBR21 V.2)" + Try ATI1 + TRYCOMMAND=ATI1 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2603 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2603 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI1\r\r' + sleep 1 + kill -9 2603 + catpid= + sleep 1 ++ echo ATI1 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI1 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI1/{n;s/ *$//;p;q;}' + RESPONSE=C936 ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI1 RESULT = "OK" RESPONSE = "C936"\n' ATI1 RESULT = "OK" RESPONSE = "C936" + Try ATI2 + TRYCOMMAND=ATI2 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2623 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2623 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI2\r\r' + sleep 1 + kill -9 2623 + catpid= + sleep 1 ++ echo ATI2 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI2 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI2/{n;s/ *$//;p;q;}' + RESPONSE=OK ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI2 RESULT = "OK" RESPONSE = "OK"\n' ATI2 RESULT = "OK" RESPONSE = "OK" + Try ATI3 + TRYCOMMAND=ATI3 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2643 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2643 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'ATI3\r\r' + sleep 1 + kill -9 2643 + catpid= + sleep 1 ++ echo ATI3 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=ATI3 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/ATI3/{n;s/ *$//;p;q;}' + RESPONSE=LF560MX VER 2.01 V.90 (VER 1.14 TBR21 V.2) ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'ATI3 RESULT = "OK" RESPONSE = "LF560MX VER 2.01 V.90 (VER 1.14 TBR2 1 V.2)"\n' ATI3 RESULT = "OK" RESPONSE = "LF560MX VER 2.01 V.90 (VER 1.14 TBR21 V.2)" + class1 + echo '' + echo 'Class 1 stuff...' Class 1 stuff... + echo '' + TryClass1Commands + Try 'AT+FCLASS=?' + TRYCOMMAND=AT+FCLASS=? + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2663 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2663 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'AT+FCLASS=?\r\r' + sleep 1 + kill -9 2663 + catpid= + sleep 1 ++ echo 'AT+FCLASS=?' ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=AT+FCLASS=? ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/AT+FCLASS=?/{n;s/ *$//;p;q;}' + RESPONSE=0,1,2 ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'AT+FCLASS=? RESULT = "OK" RESPONSE = "0,1,2"\n' AT+FCLASS=? RESULT = "OK" RESPONSE = "0,1,2" + Try 'AT+FCLASS?' + TRYCOMMAND=AT+FCLASS? + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2683 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2683 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'AT+FCLASS?\r\r' + sleep 1 + kill -9 2683 + catpid= + sleep 1 ++ echo 'AT+FCLASS?' ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=AT+FCLASS? ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/AT+FCLASS?/{n;s/ *$//;p;q;}' + RESPONSE=0 ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'AT+FCLASS? RESULT = "OK" RESPONSE = "0"\n' AT+FCLASS? RESULT = "OK" RESPONSE = "0" + Try AT+FCLASS=0 + TRYCOMMAND=AT+FCLASS=0 + sleep 1 + onDev /bin/stty 0 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty 0' /bin/stty: standard input: unable to perform all requested operations + sleep 1 + onDev -c '/bin/stty clocal && exec /bin/cat -u /dev/ttyS1' + '[' -c = -c ']' + shift ++ echo 2703 ++ /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty clocal && exec /bin/c at -u /dev/ttyS1 >/tmp/probemodem2511' + catpid=2703 + sleep 1 + onDev /bin/stty -echo -icrnl -ixon -ixoff -isig eof '"^A"' clocal 38400 + '[' /bin/stty = -c ']' + /usr/lib/fax/ondelay /dev/ttyS1 /bin/bash -c '/bin/stty -echo -icrnl -ixon -ix off -isig eof "^A" clocal 38400' + sleep 1 + printf 'AT+FCLASS=0\r\r' + sleep 1 + kill -9 2703 + catpid= + sleep 1 ++ echo AT+FCLASS=0 ++ /usr/bin/sed -e 's/[*&\$]/\\&/g' + pat=AT+FCLASS=0 ++ tr -ds '\015' '\012' ++ /usr/bin/sed -n '/AT+FCLASS=0/{n;s/ *$//;p;q;}' + RESPONSE=OK ++ tr -ds '\015' '\012' ++ tail -1 + RESULT=OK + printf 'AT+FCLASS=0 RESULT = "OK" RESPONSE = "OK"\n' AT+FCLASS=0 RESULT = "OK" RESPONSE = "OK" + Try AT+FCLASS=1 + TRYCOMMAND=AT+FCLASS=1