Help with Scripting
Christian Völker
cvoelker at knebb.de
Wed Oct 26 11:25:53 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I'm looking for some help with minicom and scripting.
I use a serial modem to dial in, login and download (by zmodem) a file.
Doing it manually with AT commands and typing in the credentials
followed by manually starting the zmodem download works pretty fine.
No I've created a script as follows:
- --------------------snip--------------
verbose on
sleep 5
log "Hier"
timeout 30
expect (
"eingeben" break
)
log "Hier3"
send "loginname"
expect (
"Sicherheitswort" send password
)
log "Hier4"
! rz
- --------------------snip--------------
Now starting minicom with "minicom -d 1" dials in, I see the "CONNECT"
string followed by the ..."eingeben".
And then it sits and waits for the "global timeout". No login.
Nothing. The logfile shows just the first 'log "Hier"' entry.
So it appears my expect does not get the "eingeben" string. But why not?
Anyone an idea what I might do wrong here?
Thanks!
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6n7kEACgkQ0XNIYlAXmzsDlgCeJmeoDoGvAkSUxhkt4cU4trFz
aWUAoMMqrAeSsaNI57CARnbQDG+JPfnn
=ihTm
-----END PGP SIGNATURE-----
More information about the minicom-devel
mailing list