Hi,
in that case you need to start your deamon by configuring /etc/inittab, don't you? 6:23:respawn:/sbin/getty 38400 tty6 HTH On Fri, 8 Jun 2007 03:16:23 -0400 "Chas Owens" <[EMAIL PROTECTED]> wrote: > On 6/8/07, Juan Pablo Feria Gomez <[EMAIL PROTECTED]> wrote: > > Hi all, I need to start a perl daemon at an BSD's startup (rc.local, > > not interactive), i found the way to run the script as a daemon, but i > > want: > > > > a) Send all the output to an tty , say, go to tty6 (ctrl+alt+F6) and > > see the output of my perl daemon > > > > b) Interact (if possible) on that TTY with the daemon... > > > > Is this possible? dows anybody have any pointers to modules or -web > > search terms- to find documentation on this? > > > > Thanks in advance > > > Writing to /dev/tty6 as root works on my Linux box. > > #!/usr/bin/perl > > use strict; > use warnings; > > my $console = '/dev/tty6'; > > open my $out, '>', $console > or die "could not open $console\n"; > > select $out; > > my $cont = 1; > $SIG{TERM} = sub { $cont = 0 }; > while ($cont) { > print localtime() . "\r\n"; > sleep 2; > } > print "all done\n"; > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/