Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to Send AT Commands to mgetty? Post 302909958 by mrm5102 on Monday 21st of July 2014 02:01:41 PM
Old 07-21-2014
How to Send AT Commands to mgetty?

Hello All,

I've been working on something which requires a dialup USB Modem. I have been using minicom with success entering "AT Commands" directly into
the terminal window that shows after running the minicom command. I had already configured the modem through minicom and was able to successfully
call into the USB Modem and hear the dialup connection tone.

But I am now trying to use mgetty to do the same, but I cannot figure out where to enter the AT Commands. I found a few different sites that talk about
using mgetty along with AT Commands but I cannot figure out WHERE these commands are entered. In minicom, I simply run the minicom command, then
when the terminal window refreshes and it shows the minicom terminal I can simply type the command directly into the window there and hit enter and it takes the
command. But mgetty, if I try the same thing nothing happens after entering the command so I'm assuming there is another way...?

I know mgetty is supposed to be started through init tab, so are you supposed to create a "script" like file for passing commands to the modem with mgetty?
I also read something about "init-chat", and how that is used to send command sequences to the modem, but don't know where to use them...?

If anyone has any ideas or suggestions on how to do this, or if anyone can point my in the direction of a tutorial for how to do this, that would be
greatly appreciated.

EDIT: As I'm writing this I was re-reading the manual page for mgetty and came across "mgettydefs", is this what I am looking for...?


Thanks in Advance,
Matt
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

HELP: Need to send commands to Program

Hi, I am an absolute beginner in Unix and I need to send a commands to a program I have created a script that will let me login to the program, however, i cannot get the script to send commands to this program. When the cript logs into the program, the display/ prompt is as follows: 1>... (1 Reply)
Discussion started by: the_m4ch1ne
1 Replies

2. Shell Programming and Scripting

How to send AT commands after getting into Kermit window?

We're using Kermit 8.0.209 in Linux environment. We're trying to invoke kermit from an application, send some AT commands and receive the responses from the End terminals like mobiles/modems. We access these deivces through serial ports. For eg., to send a file we use command-line options like... (4 Replies)
Discussion started by: pratiul
4 Replies

3. Shell Programming and Scripting

Send one email with output result from 2 commands

Hi, i want to create a script which should do the following: 1) ping the remote servers and email the hosts which are down 2) netstat on port x on 2 server and email the result too. I want both results to be sent in the same email. I have few ideas but i can't finish it. Here... (4 Replies)
Discussion started by: varu0612
4 Replies

4. Shell Programming and Scripting

Make ssh and send commands

Hi, I'm trying to make an SSH into a SGSN node and collect some commands printouts.:confused: I really don't know how this can be done. I think it must be like this: #!/bin/bash ssh user@192.168.88.10 Then I must enter the password, but I don't know how to do it, I tried with: echo... (3 Replies)
Discussion started by: nagomes
3 Replies

5. Cybersecurity

Logging shell commands and send it out

Dear friends I'm looking for a solution to log all commands that users do in my RedHat box, and send it out to other remote server, Is there any guide for that Thanks ---------- Post updated at 04:20 AM ---------- Previous update was at 03:47 AM ---------- I can think of something else I... (7 Replies)
Discussion started by: reaky
7 Replies

6. Shell Programming and Scripting

Send Remote Commands via SSH with variables

Hi there I found the Command to send commands to other servers like: sv01> ssh user@sv02 'ps -ef' But I cant use Variables from a script i want to execute on another server like: sv01> ssh user@sv02 'cd $SCRIPTHOME' although the variable is set on sv01. How can I run commands on sv02 with... (2 Replies)
Discussion started by: DarkSwiss
2 Replies

7. Shell Programming and Scripting

can i send shell commands to a open window

i want to write a script that automatically fills in a form and pushes a few buttons. can i do that with bash or something similar? (1 Reply)
Discussion started by: magiling
1 Replies

8. Linux

send remote commands to windows machine?

hey guys, I've done some searching and other than winexe I haven't been able to find a way to send remote commands to a windows machine. The problem I get is with winexe whenever you send the process to the background in a script, I get the following error. :wall: Any help is appreciated! ... (0 Replies)
Discussion started by: terrell
0 Replies

9. SuSE

Starting mgetty with systemd?

Hello All, OS: openSUSE 13.1 (Bottle) (armv7hl) uname -a: Linux linux.site 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux So this is my first attempt at starting a service at boot with systemd. I've done this with inittab in the past, but I'm having... (0 Replies)
Discussion started by: mrm5102
0 Replies

10. UNIX for Dummies Questions & Answers

Mgetty Not Answering when Calling from Outside

Hello All, mgetty Version: 1.1.36 OS: OpenSuSE 13.1 (armv7l) Modem: Zoom 56K USB Modem Model 3095 So I've been playing with mgetty for weeks now testing dialing into the USB modem from another PC using the same modem and connecting using minicom (*minicom ---dials to---> mgetty). I had... (3 Replies)
Discussion started by: mrm5102
3 Replies
fax(1)							       mgetty+sendfax manual							    fax(1)

NAME
fax - fax sending and receiving with mgetty+sendfax SYNOPSIS
faxspool [options] phone-number file faxrm job-id faxq [options] faxrunq [options] faxrunqd [options] sendfax [options] phone-number file mgetty [options] tty pbm2g3 [options] [pbm-file] g32pbm [options] [pbm-file] g3cat [options] [g3-file(s)] DESCRIPTION
This manpage very briefly describes every program from the mgetty+sendfax fax/modem software suite. For details, see the manpages for each program. faxspool is used to queue jobs for later transmission by fax. faxspool accepts different input formats, converts them into the proper for- mat required by sendfax and places the jobs into the outgoing spool directory. faxq displays the current FAX work queue. faxrm removes one or more jobs from the current fax work queue. You have to specify the job id (returned by faxq) on the command line. faxrunq processes all the faxes in the fax work queue, and sends them one-by-one. If transmission isn't possible, the job will be retried later. While meant to be run from cron, faxrunq can as well be started from the shell (but you must have access to the fax queue and the modems, which means you must be 'root' or 'uucp') faxrunqd is a replacement for faxrunq to be used in environments that send a high number of faxes per day, or need more flexibility. sendfax is the backend used by faxrunq for actually sending the fax. It is not meant to be ever called directly, but can be used in own applications. faxq-helper is a helper program that is used by faxspool, faxq and faxrm to access the fax spool directory (which is not world-writeable since mgetty version 1.1.29). mgetty is the part of the program suite that handles incoming calls. Data calls are handled as getty does it (login, shell), while fax calls are handled internally. The received faxes are stored in /var/spool/fax/incoming. See the mgetty(8) manpage for details. mgetty can not be called directly, it must be called by /etc/init. pbm2g3 is used to convert portable bitmaps to G3 fax data (for sendfax). Do not use the pbmtog3 program from the pbmplus or netpbm toolkit, it will create broken G3 data. g32pbm is used to convert received faxes (which are stored in G3 format) to portable bitmap format. PBM can be converted to other formats with the named pbmplus toolkit. g3cat is used to concat multiple G3 files, as cat does with text files. FILES
/var/spool/fax/outgoing/ outgoing fax spool directory /var/spool/fax/incoming/ incoming faxes /usr/lib/mgetty-fax/ The cover page program, faxq-helper, and a few font files live here. /etc/mgetty/ most configuration files for mgetty and sendfax live here. /usr/sbin mgetty, sendfax and faxrunqd live here /usr/bin all the other programs /etc/mgetty/faxaliases global fax alias file $HOME/.faxnrs private fax alias file /etc/mgetty/fax.allow list of allowed users /etc/mgetty/fax.deny list of denied users /etc/mgetty/faxheader fax page header /usr/lib/mgetty-fax/make.coverpg program to create fax cover page (see coverpg(1)). /etc/mgetty/login.config login configuration file for mgetty. /etc/mgetty/dialin.config caller ID setup file for mgetty (optional). /etc/mgetty/mgetty.config runtime configuration file for mgetty (not implemented yet). /etc/mgetty/sendfax.config runtime configuration file for sendfax (optional). BUGS
Look into the responding man pages. SEE ALSO
faxspool(1), faxq(1), faxrunq(1), faxrunqd(8), sendfax(8), faxrm(1), mgetty(8), pbm2g3(1), g32pbm(1), g3cat(1), faxqueue(5), mgettydefs(4), coverpg(1) mgetty.info AUTHOR
The mgetty+sendfax program suite is Copyright (C) 1993-2002 by Gert Doering, <gert@greenie.muc.de>. Parts of the programs kindly donated by Chris Lewis, Paul Sutcliffe, Klaus Weidner, and numerous others. greenie 23 Nov 02 fax(1)
All times are GMT -4. The time now is 05:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy