04-18-2012
@enaud
We had a lot of trouble understanding your previous post and recommended that you contact the software authors (when we eventually found out which product called
minicom you were posting about).
https://www.unix.com/shell-programmin...t-command.html
However, in general if you can type commands at the command line you can usually compose an
expect script.
What are you trying to do?
Last edited by methyl; 04-18-2012 at 07:18 PM..
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 CENTOS
scsi_readcap
SCSI_READCAP(8) SG3_UTILS SCSI_READCAP(8)
NAME
scsi_readcap - do SCSI READ CAPACITY command on disks
SYNOPSIS
scsi_readcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*
DESCRIPTION
This bash shell script calls the sg_readcap utility on each given DEVICE. This will send a SCSI READ CAPACITY command to each DEVICE.
The default action of this script is to send the 10 byte cdb READ CAPACITY(10) command to each DEVICE. If a response indicates the number
of blocks is greater than or equal to '2**32 - 1' then the READ CAPACITY(16) is sent and its response is output.
OPTIONS
Arguments to long options are mandatory for short options as well.
-b, --brief
shortens the output to two hexadecimal numbers, both prefixed by '0x'. The first number is the number of blocks available and the
second is the size of each blocks in bytes (e.g. '0x12a19eb0 0x200'). If an error is detected '0x0 0x0' is output and the script
continues if there are more DEVICEs.
-h, --help
print out the usage message then exit.
-l, --long
the default is to send the READ CAPACITY(10) command (i.e. the 10 byte cdb variant). When this option is given the READ CAPACITY(16)
command is sent. The latter command yields more information in its response.
-v, --verbose
increase level or verbosity.
EXIT STATUS
The exit status of this script is 0 when it is successful. Otherwise the exit status is that of the last sg_readcap utility called. See the
sg3_utils(8) man page.
AUTHORS
Written by D. Gilbert
COPYRIGHT
Copyright (C) 2009-2013 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR-
POSE.
SEE ALSO
sg_readcap (sg3_utils)
sg3_utils-1.36 May 2013 SCSI_READCAP(8)