org.kuali.common.util
Class UnixCmds

java.lang.Object
  extended by org.kuali.common.util.UnixCmds

public class UnixCmds
extends Object


Constructor Summary
UnixCmds()
           
 
Method Summary
 String chmod(List<String> options, String mode, List<String> paths)
           
 String chmod(String mode, List<String> paths)
           
 String chmod(String mode, String path)
           
 String chown(List<String> options, String owner, String group, List<String> paths)
           
 String chown(List<String> options, String owner, String group, String path)
           
 String chown(String owner, String group, String path)
           
 String chownr(List<String> options, String owner, String group, List<String> paths)
           
 String chownr(String owner, String group, List<String> paths)
           
 String chownr(String owner, String group, String path)
           
 String cmd(String executable)
           
 String cmd(String executable, List<String> args)
           
 String cmd(String executable, List<String> args, boolean bypassAnyAliases)
           
 String cp(List<String> options, String src, String dst, boolean bypassAnyAliases)
           
 String cp(String src, String dst)
           
 String cp(String src, String dst, boolean bypassAnyAliases)
           
 String hostname()
          Returns the current hostname
 String hostname(String hostname)
          Sets the current hostname
 String kill(int pid)
           
 String kill(List<Integer> pids)
           
 String mkdir(List<String> options, List<String> paths)
           
 String mkdir(String path)
           
 String mkdirp(List<String> paths)
           
 String mkdirp(List<String> options, List<String> paths)
           
 String mkdirp(String path)
           
 String nohup(String command)
           
 String nohup(String command, List<String> nohupArgs)
           
 String ps()
           
 String ps(String user)
           
 String psf(String user)
           
 String rm(List<String> paths)
           
 String rm(List<String> options, List<String> paths)
           
 String rm(String path)
           
 String rmrf(List<String> paths)
           
 String rmrf(List<String> options, List<String> paths)
           
 String rmrf(String path)
           
 String su(List<String> options, String login, List<String> args)
           
 String su(List<String> options, String login, String command)
           
 String su(String login, String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnixCmds

public UnixCmds()
Method Detail

cp

public String cp(String src,
                 String dst)

cp

public String cp(String src,
                 String dst,
                 boolean bypassAnyAliases)

cp

public String cp(List<String> options,
                 String src,
                 String dst,
                 boolean bypassAnyAliases)

nohup

public String nohup(String command)

nohup

public String nohup(String command,
                    List<String> nohupArgs)

kill

public String kill(int pid)

kill

public String kill(List<Integer> pids)

ps

public String ps()

ps

public String ps(String user)

psf

public String psf(String user)

hostname

public String hostname()
Returns the current hostname


hostname

public String hostname(String hostname)
Sets the current hostname


chmod

public String chmod(String mode,
                    String path)

chmod

public String chmod(String mode,
                    List<String> paths)

chmod

public String chmod(List<String> options,
                    String mode,
                    List<String> paths)

mkdirp

public String mkdirp(String path)

mkdirp

public String mkdirp(List<String> paths)

mkdirp

public String mkdirp(List<String> options,
                     List<String> paths)

mkdir

public String mkdir(String path)

mkdir

public String mkdir(List<String> options,
                    List<String> paths)

su

public String su(String login,
                 String command)

su

public String su(List<String> options,
                 String login,
                 String command)

su

public String su(List<String> options,
                 String login,
                 List<String> args)

rmrf

public String rmrf(List<String> paths)

rmrf

public String rmrf(String path)

rmrf

public String rmrf(List<String> options,
                   List<String> paths)

rm

public String rm(List<String> paths)

rm

public String rm(String path)

rm

public String rm(List<String> options,
                 List<String> paths)

chownr

public String chownr(String owner,
                     String group,
                     String path)

chownr

public String chownr(String owner,
                     String group,
                     List<String> paths)

chownr

public String chownr(List<String> options,
                     String owner,
                     String group,
                     List<String> paths)

chown

public String chown(List<String> options,
                    String owner,
                    String group,
                    String path)

chown

public String chown(List<String> options,
                    String owner,
                    String group,
                    List<String> paths)

chown

public String chown(String owner,
                    String group,
                    String path)

cmd

public String cmd(String executable)

cmd

public String cmd(String executable,
                  List<String> args)

cmd

public String cmd(String executable,
                  List<String> args,
                  boolean bypassAnyAliases)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.