![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Minicom runscript: How to send escape character ( \ ) | rkhanna | Shell Programming and Scripting | 1 | 10-02-2008 10:14 AM |
| how to test for serial commonication??(minicom) | arunchaudhary19 | Linux | 3 | 03-07-2008 04:09 PM |
| difference between AIX shell scripting and Unix shell scripting. | haroonec | Shell Programming and Scripting | 2 | 04-12-2006 08:12 AM |
| scripting guru's pls help me with scripting on AIX | thatiprashant | Shell Programming and Scripting | 1 | 01-20-2006 07:58 PM |
| linux - minicom | kickboxer | UNIX for Dummies Questions & Answers | 2 | 06-26-2001 01:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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/ixp...l#UsingMinicom start : Code:
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
Code:
#!/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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|