chat(8)
Shane Wegner (shane@cm.nu)
Tue, 1 Sep 1998 22:20:51 +0200
-----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 Wegner: mailto:shane@cm.nu
Sysadmin, Continuum Systems: http://www.cm.nu/
Vice President, W.A.P.V.I.
Personal website: http://www.cm.nu/~shane/
PGP key: finger:shane@cm.nu
ICQ UIN: 15706546
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBNexXJcrVq/2G1RScEQIxUwCg1imG77wfPmFoJcghN9PhjJb0JbMAnjjW
dGW6rd8+NkTO3v1ujvBN5LOl
=qG0o
-----END PGP SIGNATURE-----