Re: Email from within the MUD

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 01/05/98


On Mon, 5 Jan 1998, RICARDO C LAGOS wrote:

->if you use system to mail a file
->
->i said to use
->system("mail < tmp.file");
->
->i should have said
->system("mail user@host < tmp.file");

As an important (if I do say so myself) addendum, system() is
blocking.  Basically, the calling process (e.g., the MUD in this case)
will be stopped until the system() call returns (which is, in general,
when the called command ends).  I don't know whether making the
command run in the background in UNIX has an affect on the system()
call [I've never tried it before].


-dak


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST