SUT Home

ptmkdir

Parallel mkdir

Description

ptmkdir makes directories on specified hosts.

Command Line Arguments

ptmkdir [-m <machine_file>|-M <machine_list>] [-p] <dir1> [<dir2> <dir3>...]

-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.
-p
create any parent directories if they do not exist
<dir1> [<dir2> <dir3>...]
the list of directories to create

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 create the directory "mydir" on the machines specified in the file "destination_machines" use

ptmkdir -m destination_machines mydir

To make the same directory, specifying the machines on the command line, use

ptmkdir -M "host1 host2 host3" mydir

To create the directory "mydir/mysubdir", ensuring that mydir exists, use

ptmkdir -m destination_machines -p mydir/mysubdir

Notes

The mkdir(1) option '-m' is not supported because it conflicts with the machine file option. To get the same result, use ptmkdir, followed by ptchmod(1).

See Also

mkdir(1) ptchmod(1), SUT(1)







Contact Emil Ong about issues concerning this page.