Don't you also have "-m"? I have never used mgetty and I probably never will. I don't have a modem either. But for years I used modems on Unix with getty and its file gettydefs so this seems very familiar. mgettydefs is used to configure the port. getty was (and I assume the mgetty is) intended to set things up so the system is ready to accept an incoming call.
We did not have a great way to send AT command sto the modem on the fly. Instead we would program the modem via AT commands and the modem would simply remember it's configuration somehow. Once in a blue moon we might need to reprogram a modem, but in general this never occurred.
I have not seen a modem for a long time. I would hope that modern modems (if they exist) can remember their configuration. If your modem is dropping its config on a regular basis, maybe it need a new battery for its memory or something like that.
As I type this in, more memories are returning. I wonder if that is a good thing... We had a few modems that would "swing both ways". That is we used them both for outgoing and incoming calls. The getty would program the port (say, /dev/tty01) via gettydefs to use modem control. The getty program would issue an open() system call which would block waiting for a signal from the modem (DCD, data carrier detect or DSR, data set ready, not sure which). This signal would not arrive until the modem answered an incoming call. Meanwhile we could use programs like uucico or cu to place outgoing calls. They would open the port with no modem control and thus the open would succeed immediately. They had ways to send AT commands and this was always needed since we had to do ATDT7035551212 or something like that to tell the modem which phone number to call. Because cu or uucico had opened the port, that getty open was now blocked because another process has the port. When the modem control signal arrived the getty open stayed blocked. When cu or uucico was finished, it would put the modem back in the state in which it found it and close the port. Now it was ready to answer an incoming call again and that waiting open(0 call issued long ago by getty was still valid.
I don't know how much of this is useful to you. If you still need help, reveal a few clues so someone can help you. What version of what OS? What system? What modem?
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)
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)
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)
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)
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)
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)
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)
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)
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)