ironside has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
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.
Update
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Run a shell command in a new terminal from a perl script?
by Eliya (Vicar) on Jan 31, 2012 at 23:34 UTC | |
by ironside (Acolyte) on Feb 01, 2012 at 00:56 UTC | |
by Khen1950fx (Canon) on Feb 01, 2012 at 01:37 UTC | |
by ironside (Acolyte) on Feb 02, 2012 at 21:18 UTC | |
by Khen1950fx (Canon) on Feb 03, 2012 at 05:04 UTC | |
|
Re: Run a shell command in a new terminal from a perl script?
by Anonymous Monk on May 11, 2017 at 16:49 UTC | |
by harishnv (Sexton) on Feb 18, 2018 at 11:15 UTC | |
by LanX (Saint) on Feb 18, 2018 at 12:37 UTC |