Help with Scripting

Mark Einon mark.einon at gmail.com
Wed Oct 26 12:58:59 UTC 2011


2011/10/26 Christian Völker <cvoelker at knebb.de>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
>> expect ( "eingeben" break )
> Well, ~~I should have used "{" instead of "(" ...
>
> Login works now fine. Once logged in I start the "rz" to download any
> file with zmodem. Due to the nature of the remote site there might be
> no files so rz will run into timeouts. But minicom does not end.
>
> This is my latest script now:
> - --------------snipp----------------
> verbose on
> sleep 5
> timeout 30
> expect "eingeben" send "uname"
> expect "  Ihr Sicherheitswort bitte" send passwd
> ! rz -t 20
> ! /usr/bin/killall minicom
> - --------------snipp----------------
>
> So anyone an idea why it does not kill himself?

Hi Christian,

try /usr/bin/killall -9 minicom

(there's an extra '-9' to specify the signal type)

Cheers,

Mark



More information about the minicom-devel mailing list