Help with Scripting

Christian Völker cvoelker at knebb.de
Wed Oct 26 14:43:50 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,
>>> 
>>> try /usr/bin/killall -9 minicom (there's an extra '-9' to
>>> specify the signal type)
>> 
>> I tried- even though I WANT minicom to drop the line...but no
>> change anyways. Minicom stays and does not exit. Connection is
>> dropped,
though.
>> 
>> Any other ideas?
>> 
> 
> Not off the top of my head.
> 
> Can you post the output of 'ps ax' in another terminal when its in
> this state?
while [ 1 = 1 ]; do ps axf|grep minicom; done

21612 pts/1    S+     0:00  |       \_ minicom -d 1

21612 pts/1    S+     0:00  |       \_ minicom -d 1
21651 pts/1    S+     0:00  |           \_ runscript
/home/labor/labor.minicom minicom.log /root

21612 pts/1    S+     0:00  |       \_ minicom -d 1
21651 pts/1    S+     0:00  |           \_ runscript
/home/labor/labor.minicom minicom.log /root
21656 pts/1    S+     0:00  |               \_ rz -t 20

21612 pts/1    S+     0:00  |       \_ minicom -d 1
21651 pts/1    Z+     0:00  |           \_ [runscript] <defunct>

19953 ?        Ss     0:00  \_ sshd: root at pts/2
21612 pts/1    S+     0:00  |       \_ minicom -d 1

This is the script currently:
- ---------------------snip-------------------
verbose on
sleep 5
timeout 30
expect {
        "eingeben" break
        timeout 10 goto panic
        }
send 000892
expect {
        "bitte" break
        timeout 10 goto panic
        }
send Suse
sleep 2
log 3
! rz -t 20
log 4
panic:
log 5
! /usr/bin/killall -9 minicom
log "Panic"
- ------------------------snip----------------

And this is the logfile of the last attempt:
20111026 16:37:27 CONNECT 38400 Labor fuer Praxis, 03954557088
20111026 16:37:35 3
20111026 16:37:46 Gone offline (0:00:14)

The "Gone offline" entry appears shortly after the rz has been started
(as the dial-in server has no files to present and hangs up) but rz stays.
Monitoring ps axf above you can see rz is started and after a while
runscript goes into "<defunct>" where it's not executed any more. So
it never reaches any item after the rz.


Any further clue?

/Christian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6oHKYACgkQ0XNIYlAXmztXGwCeKvc36FDKFB67UV9zlxGiJxCw
UBAAoM+dMBFIS6ht0ct1ggh+V+HviLpt
=O2yX
-----END PGP SIGNATURE-----



More information about the minicom-devel mailing list