Re: Do shell script to dial a number
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