[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pbmserv-dev] New guy



> > you might need to tweak sendmail.cpp if it is still hardcoded to use
> > /usr/sbin/sendmail: replace "/usr/sbin/sendmail" with "/bin/cat" and the
> > board will be send to STDOUT.)

I put in the tweak, but I'm not sure I did it right.  Here's my output:
---------------------------------------------------------
$ ./gomoku challenge test1 test2
From: Richard's PBeM Server <pbmserv@gamerz.net>
Message-Id: <pbmserv.1120052740.3956.3@play.gamerz.net>
To: test1@abacustech.info
Subject: New Gomoku Board 3 test1

A new Gomoku board (3) has been started

Please start the game test1.

   Ohs (o)      Eks (x)
   test1        test2


      A B C D E F G H J K L M N O P

  15  - - - - - - - - - - - - - - -  15
  14  - - - - - - - - - - - - - - -  14
  13  - - - - - - - - - - - - - - -  13
  12  - - - - - - - - - - - - - - -  12
  11  - - - - - - - - - - - - - - -  11
  10  - - - - - - - - - - - - - - -  10
   9  - - - - - - - - - - - - - - -   9
   8  - - - - - - - - - - - - - - -   8
   7  - - - - - - - - - - - - - - -   7
   6  - - - - - - - - - - - - - - -   6
   5  - - - - - - - - - - - - - - -   5
   4  - - - - - - - - - - - - - - -   4
   3  - - - - - - - - - - - - - - -   3
   2  - - - - - - - - - - - - - - -   2
   1  - - - - - - - - - - - - - - -   1

      A B C D E F G H J K L M N O P

  Rules at: http://www.gamerz.net/pbmserv/Gomoku.html
Segmentation fault (core dumped)

-------------------------------------------------------

Obviously, it's that last line that makes me wonder.  Here's the relevant
tweak from sendmail.cpp...

while (count < 60 && (_fp = popen("/bin/cat","w")) == NULL) {

Anything obvious?

Mike