Cleaned up the PPSS help page.

This commit is contained in:
Louwrentius 2010-03-08 09:21:25 +00:00
parent f0ca726f28
commit 7df68e7658

38
ppss
View File

@ -120,10 +120,11 @@ showusage_normal () {
echo "|P|P|S|S| $SCRIPT_NAME $SCRIPT_VERSION" echo "|P|P|S|S| $SCRIPT_NAME $SCRIPT_VERSION"
echo echo
echo "PPSS is a Bash shell script that executes commands in parallel on a set" echo "PPSS is a Bash shell script that executes commands in parallel on a set"
echo "of items, such as files in a directory, or lines in a file." echo "of items, such as files in a directory, or lines in a file. The purpose"
echo "of PPSS is to make it simple to benefit from multiple CPUs or CPU cores."
echo echo
echo "This short summary only discusses options for stand-alone mode. for a " echo "This short summary only discusses options for stand-alone mode. For a"
echo "complete listing of all options, run PPSS with the options --help" echo "full listing of all options, run PPSS with the options --help"
echo echo
echo "Usage $0 [ options ]" echo "Usage $0 [ options ]"
echo echo
@ -142,7 +143,7 @@ showusage_normal () {
echo -e " this option will result in PPSS reading the config file and start" echo -e " this option will result in PPSS reading the config file and start"
echo -e " processing items based on the settings of this file." echo -e " processing items based on the settings of this file."
echo echo
echo -e "--enable-ht | -j Enable hyperthreading. Is disabled by default." echo -e "--disable-ht | -j Disable hyper threading. Is enabled by default."
echo echo
echo -e "--log | -l Sets the name of the log file. The default is ppss-log.txt." echo -e "--log | -l Sets the name of the log file. The default is ppss-log.txt."
echo echo
@ -156,6 +157,8 @@ showusage_normal () {
echo -e " used. If this is not prefered, this can be disabled with this option " echo -e " used. If this is not prefered, this can be disabled with this option "
echo -e " Only files within the specified directory will be processed." echo -e " Only files within the specified directory will be processed."
echo echo
echo -e "--help Extended help, including options for distributed mode and Amazon EC2."
echo
echo -e "Example: encoding some wav files to mp3 using lame:" echo -e "Example: encoding some wav files to mp3 using lame:"
echo echo
echo -e "$0 -d /path/to/wavfiles -c 'lame '" echo -e "$0 -d /path/to/wavfiles -c 'lame '"
@ -190,6 +193,7 @@ showusage_long () {
echo " start Starting PPSS on nodes." echo " start Starting PPSS on nodes."
echo " pause Pausing PPSS on all nodes." echo " pause Pausing PPSS on all nodes."
echo " stop Stopping PPSS on all nodes." echo " stop Stopping PPSS on all nodes."
echo " continue Continuing PPSS on all nodes."
echo " node Running PPSS as a node, requires additional options." echo " node Running PPSS as a node, requires additional options."
echo echo
echo "Options are:" echo "Options are:"
@ -209,9 +213,9 @@ showusage_long () {
echo -e " this option will result in PPSS reading the config file and start" echo -e " this option will result in PPSS reading the config file and start"
echo -e " processing items based on the settings of this file." echo -e " processing items based on the settings of this file."
echo echo
echo -e "--enable-ht | -j Enable hyperthreading. Is disabled by default." echo -e "--disable-ht | -j Disable hyper threading. Is enabled by default."
echo echo
echo -e "--log | -l Sets the name of the log file. The default is ppss-log.txt." echo -e "--log | -l Sets the name of the log file. The default is ppss-log-<pid>.txt."
echo echo
echo -e "--processes | -p Start the specified number of processes. Ignore the number of available" echo -e "--processes | -p Start the specified number of processes. Ignore the number of available"
echo -e " CPUs." echo -e " CPUs."
@ -220,15 +224,16 @@ showusage_long () {
echo -e " the load. The delay is only used at the start of all 'threads'." echo -e " the load. The delay is only used at the start of all 'threads'."
echo echo
echo -e "--no-recursion|-r By default, recursion of directories is enabled when the -d option is " echo -e "--no-recursion|-r By default, recursion of directories is enabled when the -d option is "
echo -e " used. If this is not prefered, this can be disabled with this option " echo -e " used. If this is not prefered, this can be disabled with this option."
echo -e " Only files within the specified directory will be processed." echo -e " Only files within the specified directory will be processed."
echo echo
echo -e "The following options are used for distributed execution of PPSS." echo -e "The following options are used for distributed execution of PPSS."
echo echo
echo -e "--master | -m Specifies the SSH server that is used for communication between nodes." echo -e "--master | -m Specifies the SSH server that is used for communication between nodes."
echo -e " Using SSH, file locks are created, informing other nodes that an item " echo -e " Using SSH, file locks are created, informing other nodes that an item "
echo -e " is locked. Also, often items, such as files, reside on this host. SCP " echo -e " is locked. If items are files that must be processed, they must reside"
echo -e " is used to transfer files from this host to nodes for local procesing." echo -e " on this host. SCP is used to transfer files from this host to nodes"
echo -e " for local procesing."
echo echo
echo -e "--node | -n File containig a list of nodes that act as PPSS clients. One IP / DNS" echo -e "--node | -n File containig a list of nodes that act as PPSS clients. One IP / DNS"
echo -e " name per line." echo -e " name per line."
@ -239,8 +244,8 @@ showusage_long () {
echo -e " hosts that already once connected to the server. See the file " echo -e " hosts that already once connected to the server. See the file "
echo -e " ~/.ssh/known_hosts or else, manualy connect once and check this file." echo -e " ~/.ssh/known_hosts or else, manualy connect once and check this file."
echo echo
echo -e "--user | -u The SSH user name that is used when logging in into the master SSH" echo -e "--user | -u The SSH user name that is used by the node when logging in into the"
echo -e " server." echo -e " master SSH server."
echo echo
echo -e "--script | -S Specifies the script/program that must be copied to the nodes for" echo -e "--script | -S Specifies the script/program that must be copied to the nodes for"
echo -e " execution through PPSS. Only used in the deploy mode." echo -e " execution through PPSS. Only used in the deploy mode."
@ -259,21 +264,22 @@ showusage_long () {
echo -e " encoding a wav file is an mp3 file, the mp3 file is put in the " echo -e " encoding a wav file is an mp3 file, the mp3 file is put in the "
echo -e " directory specified with this option." echo -e " directory specified with this option."
echo echo
echo -e "--homedir | -H Directory in which directory PPSS is installed on the node." echo -e "--homedir | -H Directory in which PPSS is installed on the node."
echo -e " Default is '$PPSS_HOME_DIR'." echo -e " Default is '$PPSS_HOME_DIR'."
echo echo
echo -e "Amazon EC2 platform specific options:" echo -e "Amazon EC2 platform specific options:"
echo echo
echo -e "--awskeypair | -P The Amazon EC2 SSH keypair that new instances should use" echo -e "--awskeypair | -P The Amazon EC2 SSH keypair that new instances should use."
echo echo
echo -e "--AMI | -A The Amazon Machine Image that should be used to create new running instances" echo -e "--AMI | -A The Amazon Machine Image that should be used to create new"
echo -e " running instances."
echo echo
echo -e "--type | -T The type of EC2 instance that should be created." echo -e "--type | -T The type of EC2 instance that should be created."
echo -e " Example: c1.xlarge or m1.medium" echo -e " Example: c1.xlarge or m1.medium"
echo echo
echo -e "--security | -G The security group that should be used for networking access" echo -e "--security | -G The security group that should be used for networking access."
echo echo
echo -e "--instances | -I The number of instances that should be started" echo -e "--instances | -I The number of instances that should be started."
echo echo
echo echo
echo -e "Example: encoding some wav files to mp3 using lame:" echo -e "Example: encoding some wav files to mp3 using lame:"