Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to exit a system call

by RMGir (Prior)
on Nov 08, 2013 at 13:00 UTC ( [id://1061712]=note: print w/replies, xml ) Need Help??


in reply to How to exit a system call

Does it actually wait for a ctrl-C, or would it also exit via ctrl-D?

If so, that means it exits on the end of stdin, and your fix would be to simply run it as

system "/usr/java/jdk-1.7.0_4-x86_64/bin/java -jar 'ProgramName' < /de +v/null"
You might have to do something more complicated, as you suggested, but it's probably better to try this easy option first.

Mike

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2024-04-25 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found