in reply to start bash command from perl script: alternatives to system or backticks?
... or in a new window.
If you want a separate window for the output, you can always start a new terminal emulator, and have it run a command via its -e option (-e applies to many terminals, in case of doubt, check the man page). For example
system qw(xterm -e find / -type d);
(xterm options (such as geometry, font size, etc.) would go before the -e)
As soon as the command has finished, the terminal will automatically close.
|
---|