Subject: Forking output to logfile on console app
To: None <netbsd-help@netbsd.org>
From: Andy R <quadreverb@yahoo.com>
List: netbsd-help
Date: 08/14/2002 05:57:12
If someone could point me at a way to fork off output
from an app that sits there and runs on a console, I
would appreciate it. I was looking at script, but I'm
not sure it's the right way to do it. I want to do
something like this:

-----
#!/bin/sh
while true
 do
  /usr/pkg/bin/consoleapp > fork output to logfile
(while still retaining control of the console and
getting console output)
  sleep 10
done
-----

Any help or rtfm pointers would be appreciated.

Andy

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com