Minicom Scripting

Does anyone have a working minicom script they would care to post as I can't get the scripting working and the scriptdemo and unixlogin sample scripts are on my system either.

Thanx,

I

Ok, what I'm trying to do is to interact with the Orange SMS dialup gateway.

I can get the minicom app to dial the number and use hte expect statement to confirm it sees the welcome page, but here the problem starts.

The script then needs to send an 's' without CR wait for a repsonse then send a mobile number (with CR) and wait and finally send the message (with CR).

Anyone with any minicom scripting got any ideas how to do this ?

Thanx,

I

I couldn't find much on minicom ... here's a couple examples I found, but I'm not sure they'll help with what you're trying to do:
http://www.netwinder.org/~urnaik/ixp1200_howto.html\#UsingMinicom

start :

send ""

expect {
    "Linux login:"
}
send root

expect {
	"[root@Linux /root]$"
}
send cat > /etc/resolv.conf
send domain sc.intel.com
send search sc.intel.com intel.com
send nameserver $(IXP1200_DNS1)
send nameserver $(IXP1200_DNS2)
send  

expect {
	"[root@Linux /root]$"
}
send ifup $(IXP1200_LIP) $(IXP1200_MASK) $(IXP1200_BCAST) $(IXP1200_GWAY)

expect {
	"[root@Linux /root]$"
}
send /bin/rm /var/log/wtmp

expect {
	"[root@Linux /root]$"
}
send PS1=\"[\\u@\\h \\W]\\$ \"

exit

bootixp :

#!/bin/bash

# LIP: Local IP, the address reserved for your Evaluation system
export IXP1200_LIP=10.3.19.129

# RIP: Remote IP, the address of a tftp server with zImage and ramdisk_img.gz
export IXP1200_RIP=10.3.19.128

# netmask, broadcast, gateway and DNS
export IXP1200_MASK=255.255.255.0
export IXP1200_BCAST=10.3.19.255 
export IXP1200_GWAY=10.3.19.251
export IXP1200_DNS1=143.183.51.92
export IXP1200_DNS2=143.183.163.67

# This line assumes the start script is in the user's home directory
minicom ixp1200 -S ./start