ptrm
SUT rm
Description
ptrm removes files on specified hosts.
Command Line Arguments
ptrm [-m <machine_file>|-M <machine_list>] [-vrRf] <file1> [<file2> <file3>...]
- -m <machine_file>
-
Specify a file with a list of destination machines. It is incorrect
to use this with the -M option. This option must preceed all others.
- -M <machine_list>
-
Specify a list of destination machines. The entire list must be
surrounded by quotes. It is incorrect to use this with the -m option.
This option must preceed all others.
- -v
- verbose (explain what actions are taking place)
- -r
- remove files and directories recursively
- -R
- same as -r
- -f
- force removal
- <file1> [<file2> <file3>...]
- the list of files to remove
Environment Variables
- PT_MACHINE_FILE
-
If PT_MACHINE_FILE is set, the command will attempt to open the file
whose name is stored in PT_MACHINE_FILE. This will be used if neither
the -m or -M options are given.
Examples
To remove the file "myfile" on the machines specified in the file
"destination_machines" use
ptrm -m destination_machines myfile
To remove the same file, specifying the machines on the command line, use
ptrm -M "host1 host2 host3" myfile
To remove the directory "mydir" and all files in it use
ptrm -m destination_machines -r mydir
See Also
rm(1), SUT(1)
Contact Emil Ong about issues concerning this page.
|