The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-14-2003
ianf ianf is offline
Registered User
  
 

Join Date: Dec 2001
Posts: 29
Question 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
  #2 (permalink)  
Old 08-15-2003
ianf ianf is offline
Registered User
  
 

Join Date: Dec 2001
Posts: 29
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
  #3 (permalink)  
Old 08-15-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
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
bootixp :
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0