04-18-2012
Little script with minicom
Hi all,
i must do a little script that send AT command at ttyUSB3..
for example:
Start Minicom:
Set serial port ttyUSB3
AT+CREG?
if response != OK then do something
...other AT command (open a socket tcp/ip with at comman)
Send a file .txt for example.
exit minicom.
I saw on the network command "expect" but I have not undarstand how to launch minicom and give it commands to set the right port ..
thanks for help
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hello. i'm attempting to use minicom in linux, but i'm having some difficulties. When i type in "minicom", the application opens up. It says 'starting minicom/finding modem'(something like that). However, once it actually starts, I can't do anything. No matter what I type in, it doesn't work. ... (2 Replies)
Discussion started by: kickboxer
2 Replies
2. UNIX for Dummies Questions & Answers
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 Replies)
Discussion started by: ianf
2 Replies
3. Shell Programming and Scripting
Hi,
I am new to use minicom. I want script to run on minicom with username and password as automated.(Expect). please could anyone suggest the sample code for it.
Thanks in advance (2 Replies)
Discussion started by: vanid
2 Replies
4. Shell Programming and Scripting
Hi,
I am new to using minicom. I want how to write a expect script for minicom login? I wrote a code but its not acting what iam expecting. here I have my code:
#!/usr/bin/expect
set fd
fconfigure $fd
spawn -open $fd
spawn minicom
expect “enter:”
send "\n"
send "\n"
... (3 Replies)
Discussion started by: vanid
3 Replies
5. Shell Programming and Scripting
Hi all,
I have some trouble getting stty to talk to some serial/usb converter.
Getting minicom to work was however quite simple after I entered the following settings in addition to its standard-setup:
pu port /dev/ttyUSB0
pu baudrate 19200
pu bits 8
pu... (3 Replies)
Discussion started by: pa-trick
3 Replies
6. Shell Programming and Scripting
This is what I've tried:
#!/bin/sh
send sh
send showifs
send exit
! killall minicom
My problem is that for some reason when I do this it doesn't give me the results of the prior commands sent like showifs
So I suspect my syntax is wrong. (1 Reply)
Discussion started by: uradunce
1 Replies
7. Shell Programming and Scripting
I'm a fairly new user to Linux based systems and am still a little uncomfortable with using the command interface. I'm trying to get my feet wet but have unfortunately hit a wall and am actually not even sure what I am trying to accomplish is at all possible.
Basically, I am trying to use a... (0 Replies)
Discussion started by: nrdk00
0 Replies
8. Shell Programming and Scripting
Hi All,
I am testing expect script in command prompt without issue, but in crontab it is not working, i check the output error as below:
#cat /var/log/testexp.log
spawn minicom -C /var/log/minicom1.log
No cursor motion capability (cm)
AT+COPS=?
I am new in scripting, together... (1 Reply)
Discussion started by: elingtey
1 Replies
9. SCO
hello is there a copy of minicom or equivalent for unixware 7?
thanks (3 Replies)
Discussion started by: deus-programmer
3 Replies
10. UNIX for Dummies Questions & Answers
Hey All,
I am trying to find something similar to minicom, but it needs the ability to be ran during a remote dialup session on the remote
device's side.
If I dial into the remote server (*using minicom) and then try to run minicom on the remote server I get the following:
# minicom... (20 Replies)
Discussion started by: mrm5102
20 Replies
LEARN ABOUT DEBIAN
perlbal::test
Perlbal::Test(3pm) User Contributed Perl Documentation Perlbal::Test(3pm)
NAME
Perlbal::Test - Test harness for perlbal server
SYNOPSIS
# my $msock = Perlbal::Test::start_server();
DESCRIPTION
Perlbal::Test provides access to a perlbal server running on the local host, for testing purposes.
The server can be an already-existing server, a child process, or the current process.
Various functions are provided to interact with the server.
FUNCTIONS
mgmt_port()
Return the current management port number.
dump_res($http_response)
Return a readable string formatted from an HTTP::Response object. Only the first 80 characters of returned content are returned.
tempdir()
Return a newly created temporary directory. The directory will be removed automatically upon program exit.
new_port()
Return the next free port number in the series. Port numbers are assigned starting at 60000.
test_port()
Return 1 if the port is free to use for listening on $free_port else return 0.
filecontent($file>
Return a string containing the contents of the file $file. If $file cannot be opened, then return undef.
foreach_aio($callback)
Set the server into each AIO mode (none, ioaio) and call the specified callback function with the mode name as argument.
manage($cmd, %opts)
Send a command $cmd to the server, and return the response line from the server.
Optional arguments are:
quiet_failure => 1
Output a warning if the response indicated an error, unless $opts{quiet_failure} is true, or the command was 'shutdown' (which doesn't
return a response).
manage_multi($cmd)
Send a command $cmd to the server, and return a multi-line response. Return the number zero if there was an error or no response.
start_server($conf)
Optionally start a perlbal server and return a socket connected to its management port.
The argument $conf is a string specifying initial configuration commands.
If the environment variable TEST_PERLBAL_FOREGROUND is set to a true value then a server will be started in the foreground, in which case
this function does not return. When the server function finishes, exit() will be called to terminate the process.
If the environment variable TEST_PERLBAL_USE_EXISTING is set to a true value then a socket will be returned which is connected to an
existing server's management port.
Otherwise, a child process is forked and a socket is returned which is connected to the child's management port.
The management port is assigned automatically, a new port number each time this function is called. The starting port number is 60000.
msock()
Return a reference to the socket connected to the server's management port.
ua()
Return a new instance of LWP::UserAgent.
wait_on_child($pid, $port)
Return a socket which is connected to a child process.
$pid specifies the child process id, and $port is the port number on which the child is listening.
Several attempts are made; if the child dies or a connection cannot be made within 5 seconds then this function dies with an error message.
resp_from_sock($sock)
Read an HTTP response from a socket and return it as an HTTP::Response object
In scalar mode, return only the $http_response object.
In array mode, return an array of ($http_response, $firstline) where $firstline is the first line read from the socket, for example:
"HTTP/1.1 200 OK"
perl v5.14.2 2012-02-06 Perlbal::Test(3pm)