[ Hyojong Kim writes: ]
> Hi! I am getting the following error message when I type in
> "echo help | /usr/lib/sendmail -v hyojong-request":
> hyojong-request... aliased to "|/home/majordom/wrapper request-answer hyojong"
> Undefined subroutine "main'lopen" called at /home/majordom/majordomo.pl line 229
> , <STDIN> line 1.
> "|/home/majordom/wrapper request-answer hyojong"... Sent
> I can see that main'lopen is defined in shlock.pl not in majordomo.pl.
> However, majordomo.pl doesn't require shlock.pl. What is the best way of
> fixing this problem?
Reading the FAQ:
PROBLEMS WITH 1.93'S REQUEST-ANSWER
[ Summary by Yusef Pisan ]
There are a some known bugs in request-answer. If you get the error
'Undefined subroutine "main'lopen"' (or "main::lopen" for Perl 5), you
need to insert the line 'require "shlock.pl";' near the beginning of
request-answer. The syntax of the 'do_exec_sendmail' function is
different in majordomo than in majordomo.pl, so you need to change all
occurences of 'do_exec_sendmail' in request-answer to something like
On line 41 where it exec()'s sendmail, change the "-f$list-request" to
Dave Wolfe *Not a spokesman for Motorola* (512) 891-3246
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598