|
ptpredSUT predicateDescriptionptpred executes test (1) on specified machines and outputs a hostname followed by a given string based on the result of the test on that host.
Command Line Argumentsptpred [-all|-m <machine_file>|-M <machine_list>] <arguments to test> [<then clause>] [<else clause>]
Environment Variables
ExamplesTo test for the existence of the file /home/johndoe/myfile on the machines specified in the file "destination_machines" use
ptpred -m destination_machines -f /home/johndoe/myfile To do the same test, specifying machines on the command line, use
ptpred -M "host1 host2 host3" -f /home/johndoe/myfile The output from this command might look like the following:
host1.domain.tld: 0 host2.domain.tld: 1 host3.domain.tld: 0 In this case, /home/johndoe/myfile exists only on host2. To test on similarly named hosts as in the previous example, an abbreviation can be used
ptpred -M "host%d@1-3" -f /home/johndoe/myfile where the %d is replaced by the numbers 1-3 when the test is performed.
See Alsotest(1), ptdisp(1), SUT(1)
|