Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: perl scripting help

by ejm20 (Initiate)
on Jun 01, 2021 at 14:41 UTC ( #11133368=note: print w/replies, xml ) Need Help??


in reply to Re: perl scripting help
in thread perl scripting help

The xterm does open but closes after the sleep command. How can it stay open? Thanks!!!

Replies are listed 'Best First'.
Re^3: perl scripting help
by hippo (Bishop) on Jun 01, 2021 at 14:50 UTC

    The same way you would without using Perl at all. eg:

    system ('xterm', '-e', 'ls && read line');

    will happily leave the xterm open indefinitely until the user closes it (or submits a line).


    🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133368]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-09-28 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (124 votes). Check out past polls.

    Notices?