On 02/06/01 10:46 +0530, Shailesh Dargude spewed into the LI bitstream:
> On Sat, 2 Jun 2001, Suresh Ramasubramanian wrote:
>
> > On 01/06/01 19:14 +0530, mukund spewed into the LI bitstream:
> > > User Ivrs.pm module, available at cpan.org,
> > > It is much better, faster, and extremely easy to configure.
> >
> > That's the one you coded, right?
> No I am not using perl here,I've used shell script which is something like
> this :
I was asking mukund about ivrs.pm ...
-suresh - reply to LIP set.
> #!/bin/sh
> set -x
> exec 2>/tmp/error
> #
> # Define the function to receive an answer from the voice library
> #
> function receive() {
> read INPUT<&$VOICE_INPUT;
> echo "$INPUT";
> }
>
> #
> # Define the function to send a command to the voice library
> #
>
> function send() {
> echo $1 >&$VOICE_OUTPUT
> }
>
> # Let's see if the voice library is talking to us
>
> ANSWER=`receive` -----------------------------> This works...
>
>
>
> if [ "$ANSWER" != "HELLO SHELL" ]
> then
> echo "$0: voice library not answering" >&2
> exit 1
> fi
>
>
> #
> # Let's answer the message
> #
> send "HELLO VOICE PROGRAM"
> #
>
> #
> # Let's see if it worked
> #
>
> ANSWER= `receive` ------------> This receive blocks.......I am expecting
> 'READY' here.
>
>
> I don't the reason why does it blocks, whereas first receive returns
> successfully.Is there any thing I am missing in configuration file
> ie. voice.conf .
>
> Awaiting reply
>
> Shailesh.
>
>
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/linux-india-help
--
Suresh Ramasubramanian <----> mallet <at> efn dot org
EMail Sturmbannfuhrer, Lower Middle Class Unix Sysadmin
Politicians are the same all over. They promise to build a bridge even
where there is no river.
-- Nikita Khrushchev
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/linux-india-help