chat(8)
"Daniel D. Barber" (dbarber@shutter.net)
Wed, 2 Sep 1998 00:42:32 +0200
Shane Wegner wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> It was mentioned about a day ago that one could use a chatscript in
> cnd-program inorder to hangup on an unwanted number. I think this is what
> I want to do because I get alot of telemarketers so it would be very
> useful. Anyways, I have the following chat command.
> system("/usr/sbin/chat TIMEOUT 3 '' \rAT 'OK' ATh1h0");
> But chat works with stdin and stdout so I tried:
> system("/usr/sbin/chat TIMEOUT 3 '' \rAT 'OK' ATh1h0 </dev/ttyS3
> >/dev/ttyS3");
>
> How do I get it to use the modem instead of stdin/out? My sinceer
> appologies if this in in a manpage or the list archives but I looked
> everywhere. It's probably something pretty small though.
>
Shane,
where are you putting those commands, in the dialin.config? If not,
where do you specify what numbers it should hang up on? I am looking
for any clue as to the chat script. I have no idea where to start.
I have been looking at the man page for voice.shell, but it looks like
it would be pretty in-depth programming to get it to do what I want.
Dan