From owner-freebsd-hackers Fri Sep 1 5:13:30 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hermes.atrada.de (hermes.atrada.de [212.118.32.33]) by hub.freebsd.org (Postfix) with SMTP id 5E28637B422 for ; Fri, 1 Sep 2000 05:13:26 -0700 (PDT) Received: from erlangen01.atrada.de by hermes.atrada.de via smtpd (for hub.FreeBSD.org [216.136.204.18]) with SMTP; 1 Sep 2000 12:13:26 UT Received: (private information removed) Message-ID: <58A002A02C5ED311812E0050044517F00D25DB@erlangen01.atrada.de> From: Alexander Maret To: 'Peter Pentchev' Cc: "'freebsd-hackers@freebsd.org'" Subject: AW: Redirect stdout/stderr to syslog [OFF-TOPIC] Date: Fri, 1 Sep 2000 14:13:19 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Ursprungliche Nachricht----- > Von: Peter Pentchev [mailto:roam@orbitel.bg] > Gesendet: Freitag, 1. September 2000 14:00 > > man 1 logger > > pipe your stdout/stderr to logger(1), and you're all set. > You may even > specify a facility/level to log with. > Thanks for your quick answer but I would prefer to do it entirely in C without calling external progs. I could think of a solution forking another child process which does the syslog logging and redirecting stdout/stderr of the execvped program via IPC to this child. But is there any easier solution? Bye, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message