From owner-freebsd-questions Sat May 20 19:05:06 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA17973 for questions-outgoing; Sat, 20 May 1995 19:05:06 -0700 Received: from matrix.xiii.com (xiii.sccsi.com [198.65.130.42]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA17946 for ; Sat, 20 May 1995 19:04:55 -0700 Received: (from quint@localhost) by matrix.xiii.com (8.6.9/8.6.9) id VAA02058 for questions@freebsd.org; Sat, 20 May 1995 21:06:00 GMT Date: Sat, 20 May 1995 21:06:00 GMT From: Dark Realms Message-Id: <199505202106.VAA02058@matrix.xiii.com> To: questions@FreeBSD.org Subject: A background process question Sender: questions-owner@FreeBSD.org Precedence: bulk Hi.. I'm trying to run a MUD on FreeBSD 2.0 ... I have a problem with running a background process in a shell script or by using system() in a little autoprogram, so the MUD can reboot after a crash or reboot.. the two ways are : bin/drserver 6666 >& syslog or : system("bin/drserver 6666 >& syslog"); Both gives the error : Syntax error: Bad fd number. Then I tryed using freopen() inside the MUD to direct stderr and stdout to the syslog file. Problem here that all output to the file was first written when I closed the two streams again [with fclose()] .. And since 1) we like to look in the syslog file sometimes and 2) the MUD can run so long that I would expect it would take up to much memory/stack or whatever it use before written to file... So my question is if its possible somehow to make a >& in a shell script or through system() ?? Thanks for listen.. Erik Niese-Petersen. Email: quint@matrix.xiii.com Dark Realms IMP.