in reply to Getting output to terminal

Do not worry about the console in the Perl program. Have your Perl program write to a file. Use tail -F to watch that file from a console. There are many ways you can get your console to open up automatically, for example your windowing system should support some kind of autostart of applications. Look into udev for how to start applications when a USB device is connected.

Replies are listed 'Best First'.
Re^2: Getting output to terminal
by rkrasowski (Sexton) on Aug 03, 2014 at 17:46 UTC

    Now story is getting more interesting. The script that I attached works on one computer with Ubuntu 14.04, does not work with Ubuntu 12.04 ( I do not think version of Ubuntu matter here) . Script does not want to print to the terminal window that script initiated and opened. It will however sent data and print into terminal windows that is already open. Interesting, any ideas??

      If by attached you mean the above, my opinion is that you're doing things backwards. The terminal should be running a command (such as your script or tail) and showing its output (e.g. gnome-terminal -e 'tail -F /var/log/syslog'), instead of the script opening a terminal and trying to hack the output into there somehow. Don't do it that way, and do it as described in the parent above, you'll arrive at a working, more reliable solution faster.