• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Do shell script to dial a number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do shell script to dial a number


  • Subject: Re: Do shell script to dial a number
  • From: Doug McNutt <email@hidden>
  • Date: Sun, 12 Dec 2004 14:05:01 -0700

While messing around with a USB chip I discovered that it was easy, in a BBEdit worksheet, to

echo "Testing" > /dev/their_driver

Which passed characters to the device which I could observe on an oscilloscope.

I tried:

echo "ATDT5551212" > /dev/cu.modem  # which did nothing
echo "ATDT5551212" > /dev/tty.modem  # which returned "device is busy"

I then turned off the FAX option, which was active for no good reason, and;

echo "ATDT5551212" > /dev/tty.modem  # no longer returns an error

But I didn't get any audio indicating that the modem responded. Now I have no idea if this sawtooth G4 even has a working modem in it but the idea may be worth some more thought or other insight from someone familiar with serial devices under BSD.

It's amusing that in Terminal these echos can cause a hang that I don't yet understand. It's seems to be expecting something like a HERE document. Using

echo  "ATDT5551212" > test.txt
cat test.txt >  /dev/tty.modem  #  doesn't help.

--
-->  There are 10 kinds of people:  those who understand binary, and those who don't <--
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Do shell script to dial a number (again) Missing enter input....
      • From: Bernardo Hoehl <email@hidden>
References: 
 >Re: Do shell script to dial a number (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: set the clipboard not available in some apps (like Word)
  • Next by Date: Re: set the clipboard not available in in some apps (like Word)
  • Previous by thread: Re: Do shell script to dial a number
  • Next by thread: Do shell script to dial a number (again) Missing enter input....
  • Index(es):
    • Date
    • Thread