jnr.posix.POSIX.execv()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中jnr.posix.POSIX.execv()方法的一些代码示例,展示了POSIX.execv()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.execv()方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:execv

POSIX.execv介绍

暂无

代码示例

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

  1. public int execv(String path, String[] argv) {
  2. try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
  3. }

代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep

  1. public int execv(String path, String[] argv) {
  2. return posix().execv(path, argv);
  3. }

代码示例来源:origin: io.prestosql.cassandra/cassandra-driver

  1. public int execv(String path, String[] argv) {
  2. return posix().execv(path, argv);
  3. }

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

  1. public int execv(String path, String[] argv) {
  2. return posix().execv(path, argv);
  3. }

代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep

  1. public int execv(String path, String[] argv) {
  2. try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
  3. }

代码示例来源:origin: com.github.jnr/jnr-posix

  1. public int execv(String path, String[] argv) {
  2. return posix().execv(path, argv);
  3. }

代码示例来源:origin: com.github.jnr/jnr-posix

  1. public int execv(String path, String[] argv) {
  2. try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
  3. }

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver

  1. public int execv(String path, String[] argv) {
  2. try { return posix.execv(path, argv); } catch (UnsatisfiedLinkError ule) { return unimplementedInt(); }
  3. }

代码示例来源:origin: com.proofpoint.galaxy/galaxy-cli

  1. public static void execRemote(String host, String command)
  2. {
  3. POSIX posix = POSIXFactory.getPOSIX();
  4. String ssh = firstNonNull(getenv("GALAXY_SSH_COMMAND"), firstNonNull(findFileInPath("ssh", null), "/usr/bin/ssh"));
  5. String[] args;
  6. if (command == null) {
  7. args = new String[]{ssh, host};
  8. }
  9. else {
  10. args = new String[]{ssh, host, "-t", shellQuote(command)};
  11. }
  12. posix.execv(ssh, args);
  13. }

代码示例来源:origin: io.airlift.airship/airship-cli

  1. public static void execRemote(String host, String command)
  2. {
  3. POSIX posix = POSIXFactory.getPOSIX();
  4. String ssh = firstNonNull(getenv("AIRSHIP_SSH_COMMAND"), firstNonNull(findFileInPath("ssh", null), "/usr/bin/ssh"));
  5. String[] args;
  6. if (command == null) {
  7. args = new String[]{ssh, host};
  8. }
  9. else {
  10. args = new String[]{ssh, host, "-t", shellQuote(command)};
  11. }
  12. posix.execv(ssh, args);
  13. }

代码示例来源:origin: com.proofpoint.galaxy/galaxy-cli

  1. public static void execLocal(String command)
  2. {
  3. POSIX posix = POSIXFactory.getPOSIX();
  4. String shell = firstNonNull(getenv("SHELL"), firstNonNull(findFileInPath("bash", null), "/bin/bash"));
  5. String[] args;
  6. if (command == null) {
  7. args = new String[]{shell, "-l"};
  8. }
  9. else {
  10. args = new String[]{shell, "-c", shellQuote(command)};
  11. }
  12. posix.execv(shell, args);
  13. }

代码示例来源:origin: airlift/airship

  1. public static void execLocal(String command)
  2. {
  3. POSIX posix = POSIXFactory.getPOSIX();
  4. String shell = firstNonNull(getenv("SHELL"), firstNonNull(findFileInPath("bash", null), "/bin/bash"));
  5. String[] args;
  6. if (command == null) {
  7. args = new String[] {shell, "-l"};
  8. }
  9. else {
  10. args = new String[] {shell, "-c", shellQuote(command)};
  11. }
  12. posix.execv(shell, args);
  13. }

代码示例来源:origin: io.airlift.airship/airship-cli

  1. public static void execLocal(String command)
  2. {
  3. POSIX posix = POSIXFactory.getPOSIX();
  4. String shell = firstNonNull(getenv("SHELL"), firstNonNull(findFileInPath("bash", null), "/bin/bash"));
  5. String[] args;
  6. if (command == null) {
  7. args = new String[]{shell, "-l"};
  8. }
  9. else {
  10. args = new String[]{shell, "-c", shellQuote(command)};
  11. }
  12. posix.execv(shell, args);
  13. }

代码示例来源:origin: airlift/airship

  1. public static void execRemote(String host, String command)
  2. {
  3. POSIX posix = POSIXFactory.getPOSIX();
  4. String ssh = firstNonNull(getenv("AIRSHIP_SSH_COMMAND"), firstNonNull(findFileInPath("ssh", null), "/usr/bin/ssh"));
  5. String[] args;
  6. if (command == null) {
  7. args = new String[] {ssh, host};
  8. }
  9. else {
  10. args = new String[] {ssh, host, "-t", shellQuote(command)};
  11. }
  12. posix.execv(ssh, args);
  13. }

相关文章

POSIX类方法