![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bash: Exiting while true loop when terminal is not the focus window | acclaypool | Shell Programming and Scripting | 2 | 02-25-2008 02:02 PM |
| Script to launch terminal window? | omerta | SUN Solaris | 5 | 06-30-2005 02:48 PM |
| Dial-Out & Dial-In Connections in OpenServer 5.0.6. | thecobolguy | SCO | 1 | 04-28-2005 04:43 AM |
| Find and activate a terminal window | cmp1jrv | SUN Solaris | 0 | 01-27-2005 08:48 AM |
| Terminal 'Local Echo' lost on Modem Dial-out | mybeat | UNIX for Advanced & Expert Users | 2 | 04-12-2002 04:22 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How do I dial a number from the terminal window?
Hi Folks,
Just for the record: I am a Mac User. But I believe my question is a simple UNIX FBSD question. My problem: I need to learn how to "pick up" the telephone line and dial a number from an Unix shell or shell script execution. My modem is at /dev/cu.modem Why I need it? I have an eletronic circuit in my office that is talking to a program in my computer. In case something goes wrong in the circuit, I would like my computer to dial me at my cell phone. I have succesfullly done it using the efax command, using an AppleScript that accesses a shell via "do shell script blah, blah, blah". In fact the script tries to send me a fax at my cell phone. I believe that there should be an Unix command built into my system that would let me to do this simple task. Thanks for your help, Bernardo Höhl - Rio de Janeiro - Brazil |
| Forum Sponsor | ||
|
|
|
|||
|
If you want to dial via a shell script perhaps echoing the AT commands to the device might work. echo "ATAH" > /dev/cu.modem. Not sure though.
Your best bet would be to find a dialer that would be used for dialing an ISP to connect the computer to the internet and modify the settings to dial your cellphone. Google and Sourceforge.net are your best bets for that. -Seg |
|
|||
|
Hi Seg!
Thanks for posting. Unfortunately your "echo" tip did not work. I have also successfully applescripted the program "Internet Connect", as you sugested. And it worked. As I said, the best I have achieved is using built in eFax. And I believe eFax is using some resource I could be using directly... Daemon? Protocol? But for my education, I would like to learn how to do it the right way. Any variations I could try on echoeing? Thanks again. |
|
|||
|
|||
|
I have downloaded a small app called ZTerm that is something like a terminal window to access the modem.
One very interesting thing I noticed now: As I open the ZTerm app and another regular Terminal, each window side by side, and I type on the regular terminal window: # echo "ATDT0," > /dev/cu.modem and hit enter The "ATDT0," appears on the ZTerm window. That means that my device is "listening" to my echo command. Right? As I go back to ZTerm window, and hit enter, I mean just enter, not the entire command line, the modem dials "zero". I think my dificulty is to include the enter in the "ATDT0," string, using the regular terminal window. I tried (on the regular terminal window) placing a "\" just after the comma, and including an "enter" in the string, but this only caused the carrier to move one line down in the ZTerm window. I guess I can do it once I can input the "enter" in the modem string. Any clues? |
|
|||
|
Just want to understand the OS's mechanisms, want to learn.
GUI solutions are not as robust as shell solutions... A simple screensaver can ruin a GUI solution sometimes. Please forgive for being so persistent. |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|