You can do better than cat, and should use printf, which supports escape sequences natively:
Code:
#!/bin/bash
trap "echo 'whoa doggies'" SIGHUP
exec 5<> /dev/cu.usbserial* # BASH required for bidirectional open
printf "ATH\r\n" >&5
SIGHUP is what kills processes when a terminal closes, which a shell can catch and respond to as it pleases.
Also check out man stty for a parade of options related to terminal devices, serial ports, and modems, including such things as cr-lf translation and flow control.
Hi everyone
I am having some real difficulties getting a dial in modem to work on one of my HP boxes. It's a mux modem on port 7 which I have set up at 9600 baud.
I can dial in, the handshakes are completed, but then it returns incoherent characters on the emulation screen. I think my dial in... (1 Reply)
I've spent enough time trying to put on work Lucent Winmodem in my armada M300 (compaq laptop) I use Mandrake 8.0 but as soon as i get connected
and prompmts appears modem shutsdown.
Does any one had a similar situation, solved it?
cheers (2 Replies)
Hi!
I have a little prob with dialing up to the internet... When I try connect, it says "Sorry, modem is busy"...
Specs:
Laptop
56K modem
Slackware 8.0
Kernel 2.4.5
Cheers;) (4 Replies)
Specs:
Dlink DFE-560EL external modem.
RedHat 7.1
How do you turn off the modem volume? I am getting annoyed of it beeping everytime I use it but there is no switch on the hardware to tune down the volume.
I have tried using minicom and use the following commands:
ATL0
ATM0
Next, I... (2 Replies)
Pleaseee... Helpppp.... !!!
I am using SCO Open Server 5.05. Recently, i have upgraded the system which means transfer all apps and data to the new system. Everything work well except one thing. On my old system i have an external modem which to dial out. Now that i use the same modem on... (4 Replies)
I have got Suse 8.0 by using a modem (US Robotics 56K Faxmodem Ext).
During connection i got the error 16. I tried it under RedHat and Mandrake too.....same problem. What can i do ?
Thanx...a lot...
Logfile:
SuSE Meta pppd (smpppd), Version 0.73 on zuhause.
wwwoffle not is running ... (1 Reply)
Ok. I tried following the directions from some of the other threads, but I've hit a road block.
I have red hat 7.3 and I installed the hcf package:
hcfpcimodem-0.99lnxtbeta03042700k2.4.18_3-1rh.i386.rpm
It installed ok, no errors, but I still can't get linux to find my modem. I've tried... (2 Replies)
Hi all,
Is there any difference between a null modem cable or a modem cable ?
i assume that a null modem cable is a normal cable that i used from cpu serial ports to a modem for dialup.
please correct if i am wrong,
thks (2 Replies)
Hi, my first Sco question so go easy!
We have a customer who is on Sco v5.0.2. We are attempting to talk a consultant on site through how to configure the MODEM in scoadmin. Unfortunately the MODEM install instructions that we work from only work for v5.0.4 and assume that scoadmin has an option... (1 Reply)
hi folks,
i am looking for a analog modem to use it with a solaris9 sparc mashine. as far as i know, solaris communicates with the modem using AT-commands. so do i need a special modem for solaris or just a modem? i am open for everything. PCI-modem, seriell modem, usb modem. what are you using? i... (1 Reply)
Discussion started by: pressy
1 Replies
LEARN ABOUT V7
ioctl
IOCTL(2) System Calls Manual IOCTL(2)NAME
ioctl, stty, gtty - control device
SYNOPSIS
#include <sgtty.h>
ioctl(fildes, request, argp)
struct sgttyb *argp;
stty(fildes, argp)
struct sgttyb *argp;
gtty(fildes, argp)
struct sgttyb *argp;
DESCRIPTION
Ioctl performs a variety of functions on character special files (devices). The writeups of various devices in section 4 discuss how ioctl
applies to them.
For certain status setting and status inquiries about terminal devices, the functions stty and gtty are equivalent to
ioctl(fildes, TIOCSETP, argp)
ioctl(fildes, TIOCGETP, argp)
respectively; see tty(4).
The following two calls, however, apply to any open file:
ioctl(fildes, FIOCLEX, NULL);
ioctl(fildes, FIONCLEX, NULL);
The first causes the file to be closed automatically during a successful exec operation; the second reverses the effect of the first.
SEE ALSO stty(1), tty(4), exec(2)DIAGNOSTICS
Zero is returned if the call was successful; -1 if the file descriptor does not refer to the kind of file for which it was intended.
BUGS
Strictly speaking, since ioctl may be extended in different ways to devices with different properties, argp should have an open-ended dec-
laration like
union { struct sgttyb ...; ... } *argp;
The important thing is that the size is fixed by `struct sgttyb'.
ASSEMBLER
(ioctl = 54.)
sys ioctl; fildes; request; argp
(stty = 31.)
(file descriptor in r0)
stty; argp
(gtty = 32.)
(file descriptor in r0)
sys gtty; argp
IOCTL(2)