|There's more than one way to do things|
Run a shell command in a new terminal from a perl script?by ironside (Acolyte)
|on Jan 31, 2012 at 22:01 UTC||Need Help??|
ironside has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to write a perl script that will run a command in a new terminal.
I found code to open a new terminal from my script but it will not run the command when it opens. Does anyone know how I can achieve this?
Thanks in advance.
I would like this script to open a new Gnome window.
When I run the following command from the command line, it does what I am trying to achieve: gnome-terminal -x sh -c "ls|less"
Is there any way of getting this command to run from with in a perl script?