[ List Archives Home ] [ Thread index for 2008 ]
[ Date index for 2008 ]
[ Author index for 2008 ]
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Hi,
we've had similar problems with expect, where it just dies for no
reason. I've found moving to Perl's "Expect" module has alleviated all
of them. You might consider giving it a try:
http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod
- adam
-------------------------------------
Tri-Colleges Systems Coordinator
Bryn Mawr | Haverford | Swarthmore
610.526.5294
Yow Wei Chui wrote:
We are experimenting with using expect to automate Create Lists. The
script stops at the point where the review file is found and the command
sends out string0. Expect does not seem to be able to interpret the file
number and simply stops.
...
expect "\ Set Range:"
send "\\"
expect "Search records contained in another review file?"
send "y"
expect "Choose one <1-240,F,B,Q>"
send "f"
expect -re "(.*(08\[0-2])|07\[8-9]) > jennifer/closed stacks\n"
send $expect_out(0,string)
...
send "S"
expect "What name would you like to give this file of records?"
sleep 5
...
Does anyone has any idea of how to resolve this problem? Any help is
much appreciated. Thank you.
Regards
YOW, Wei Chui (Ms)
National University of Singapore Libraries
--
This message was distributed through the Innovative Users Group INNOPAC list
Public replies: INNOPAC at innopacusers dot org
Update your subscription options: http://innopacusers.org/mailman/listinfo/innopac