coldhawk has asked for the wisdom of the Perl Monks concerning the following question:

i failed to find information about this the way i need to do it.

i fork my program and i need it to print some information in my open tty1, but failed to do so. I have tried open the /dev/tty1 and print it there but that didn't do the trick. I know im missing something here and i would be thankful of any information where to go from here.

alright my bad i opened it read-only so that's why it didn't work, thanx for your great help anyway.
open (TTY, ">>/dev/tty1 ) or die "$!\n"; print TTY "Hello there tty1 console\n"; close (TTY);

Replies are listed 'Best First'.
Re: Printing information to tty
by zentara (Cardinal) on Feb 22, 2004 at 13:11 UTC
    I've had some luck with the following snippet:
    { local *STDOUT; open( STDOUT, ">>/dev/tty" ); print "This goes to /dev/tty\n"; }

    I'm not really a human, but I play one on earth. flash japh