moss.modules
Class UCopy
java.lang.Object
moss.modules.UCopy
- All Implemented Interfaces:
- MUserProcess
public class UCopy
- extends java.lang.Object
- implements MUserProcess
this class provides a basic file-copy utility for MOSS.
It should have the following usage/operation:
/bin/copy [options] SOURCE DEST
Where SOURCE is the file to copy from, and DEST is the file or directory
to copy to. If a directory is given, a file with the same name as that in
SOURCE should be created in the DEST directory.
Options include:
-i to be interactive: prompt the user if the destination file already exists
-a to append to the destination file, rather than truncate/overwrite it
--help to produce some on-line help
|
Constructor Summary |
UCopy()
|
|
Method Summary |
int |
main(java.lang.String[] argv,
MEnv envp)
process entry-point. |
void |
signal(int signo,
java.lang.Object sigdata)
signal handler. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UCopy
public UCopy()
main
public int main(java.lang.String[] argv,
MEnv envp)
- process entry-point.
- Specified by:
main in interface MUserProcess
- Parameters:
argv - array of command-line arguments, including program nameenvp - process environment
- Returns:
- 0 on success, or 1 on error
signal
public void signal(int signo,
java.lang.Object sigdata)
- signal handler. You can safely ignore this.
- Specified by:
signal in interface MUserProcess
- Parameters:
signo - signal numbersigdata - signal data