in reply to Re: Getting output to terminal
in thread Getting output to terminal

Sorry about lack of specifics, I was desperate writing last message. Computer: Dell XPS13 with Ubuntu 12.04. Again the plan is to pop up terminal/console window when gps logger is connected and displaying output of the process in that window. SO in summary I would like for perl program to open up new terminal window and display it's output there. Thanks Robert

Replies are listed 'Best First'.
Re^3: Getting output to terminal
by rkrasowski (Sexton) on Aug 02, 2014 at 20:59 UTC

    Hi Monks, I think I start getting sme ideas. Below is a code that still does not work and I do not know why

    #!/usr/bin/perl use strict; use warnings; `gnome-terminal &`; open (my $OUT, '>>','/dev/pts/2'); select $OUT; while(1) { print "Testing on this termianal\n"; sleep(1); }

    I have to go as root to open $OUT, but still nothing comes on new terminal windows. I did check and and new terminal is /dev/pts/2. Any ideas?? Robert