public class ProcessUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProcessUtil.ProcessListener
Interface that clients of the
ProcessUtil.ProcessMonitor
can implement to get notified if a process is down. |
static class |
ProcessUtil.ProcessMonitor
Simple monitoring thread that can check if a process is down
|
| Constructor and Description |
|---|
ProcessUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<org.jutils.jprocesses.model.ProcessInfo> |
findProcessesByName(String name)
Find ProcessInfo by Name
|
static Process |
startProcess(String... command)
Start a process.
|
public static Optional<org.jutils.jprocesses.model.ProcessInfo> findProcessesByName(String name)
name - like "AutoLynx.exe" or "AutoLynx" on *nix.public static Process startProcess(String... command) throws IOException
command - a list of command names e.g "AutoLynx.exe"IOException - when a command could not be startedCopyright © 2023 SiLA Java Developers. All rights reserved.