[CODE] Booting a mud online

From: Julian Buckley (s348266@student.uq.edu.au)
Date: 12/29/98


Hi...I'm trying to create a command (if poss.) which'll boot another port
of mine up when I'm online.  I.e. boot port B when I'm active on port A...

My code looks like:

***SNIP***
ACMD(do_bootup)
{
  char buf[100];

  sprintf(buf, "nice ../../circle30bpl14/bin/temple.current %d &", (int) getpid());
  system(buf);
  mudlog("Booting up Port 1502...", CMP, LVL_IMPL, FALSE);
  send_to_char(OK, ch);
}
***END***

I figure there's something wrong in the sprintf line...the mudlog shows up
fine, but the binary doesnt get called.

Can anyone help?

-----------------------------------------------------------------
 Julian Buckley, 3rd Year Computer Systems Engineering
 Dept. Computer Science and Electrical Engineering, Univ. of Qld
 E-Mail: s348266@student.uq.edu.au
 Web Page: http://student.uq.edu.au/~s348266/index.html
-----------------------------------------------------------------


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



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