本文整理了Java中jnr.posix.POSIX.execv()
方法的一些代码示例,展示了POSIX.execv()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.execv()
方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:execv
暂无
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int execv(String path, String[] argv) {
try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
public int execv(String path, String[] argv) {
return posix().execv(path, argv);
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public int execv(String path, String[] argv) {
return posix().execv(path, argv);
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int execv(String path, String[] argv) {
return posix().execv(path, argv);
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
public int execv(String path, String[] argv) {
try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.github.jnr/jnr-posix
public int execv(String path, String[] argv) {
return posix().execv(path, argv);
}
代码示例来源:origin: com.github.jnr/jnr-posix
public int execv(String path, String[] argv) {
try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public int execv(String path, String[] argv) {
try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
}
代码示例来源:origin: com.proofpoint.galaxy/galaxy-cli
public static void execRemote(String host, String command)
{
POSIX posix = POSIXFactory.getPOSIX();
String ssh = firstNonNull(getenv("GALAXY_SSH_COMMAND"), firstNonNull(findFileInPath("ssh", null), "/usr/bin/ssh"));
String[] args;
if (command == null) {
args = new String[]{ssh, host};
}
else {
args = new String[]{ssh, host, "-t", shellQuote(command)};
}
posix.execv(ssh, args);
}
代码示例来源:origin: io.airlift.airship/airship-cli
public static void execRemote(String host, String command)
{
POSIX posix = POSIXFactory.getPOSIX();
String ssh = firstNonNull(getenv("AIRSHIP_SSH_COMMAND"), firstNonNull(findFileInPath("ssh", null), "/usr/bin/ssh"));
String[] args;
if (command == null) {
args = new String[]{ssh, host};
}
else {
args = new String[]{ssh, host, "-t", shellQuote(command)};
}
posix.execv(ssh, args);
}
代码示例来源:origin: com.proofpoint.galaxy/galaxy-cli
public static void execLocal(String command)
{
POSIX posix = POSIXFactory.getPOSIX();
String shell = firstNonNull(getenv("SHELL"), firstNonNull(findFileInPath("bash", null), "/bin/bash"));
String[] args;
if (command == null) {
args = new String[]{shell, "-l"};
}
else {
args = new String[]{shell, "-c", shellQuote(command)};
}
posix.execv(shell, args);
}
代码示例来源:origin: airlift/airship
public static void execLocal(String command)
{
POSIX posix = POSIXFactory.getPOSIX();
String shell = firstNonNull(getenv("SHELL"), firstNonNull(findFileInPath("bash", null), "/bin/bash"));
String[] args;
if (command == null) {
args = new String[] {shell, "-l"};
}
else {
args = new String[] {shell, "-c", shellQuote(command)};
}
posix.execv(shell, args);
}
代码示例来源:origin: io.airlift.airship/airship-cli
public static void execLocal(String command)
{
POSIX posix = POSIXFactory.getPOSIX();
String shell = firstNonNull(getenv("SHELL"), firstNonNull(findFileInPath("bash", null), "/bin/bash"));
String[] args;
if (command == null) {
args = new String[]{shell, "-l"};
}
else {
args = new String[]{shell, "-c", shellQuote(command)};
}
posix.execv(shell, args);
}
代码示例来源:origin: airlift/airship
public static void execRemote(String host, String command)
{
POSIX posix = POSIXFactory.getPOSIX();
String ssh = firstNonNull(getenv("AIRSHIP_SSH_COMMAND"), firstNonNull(findFileInPath("ssh", null), "/usr/bin/ssh"));
String[] args;
if (command == null) {
args = new String[] {ssh, host};
}
else {
args = new String[] {ssh, host, "-t", shellQuote(command)};
}
posix.execv(ssh, args);
}
内容来源于网络,如有侵权,请联系作者删除!