PHP Classes

File: debug.main.command.sh

Recommend this page to a friend!
  Classes of Karl Holz  >  Automator Shell Action Tools  >  debug.main.command.sh  >  Download  
File: debug.main.command.sh
Role: Example script
Content type: text/plain
Description: Sample output
Class: Automator Shell Action Tools
Process console input and environment variables
Author: By
Last change:
Date: 6 years ago
Size: 629 bytes
 

Contents

Class file image Download
#!/bin/bash

echo -e "Command with out arguments: \n php main.command \n"
php main.command


echo -e "Command with 2 arguments: \n arg1=\"Hello\" arg2=\"World!\" php main.command \n"
arg1="Hello" arg2="World!" php main.command

echo -e "Command with 2 arguments and piped input: \n ls -l | arg1=\"Hello\" arg2=\"World!\" php main.command \n"
ls -l | arg1="Hello" arg2="World!" php main.command

echo -e "Command with 2 arguments and input doc: \n"
cat <<+
arg1="Hello" arg2="World!" php main.command <<+
[new]
one="Hello"
two="World"
+
echo -e "+\n"
arg1="Hello" arg2="World!" php main.command <<+
[new]
one="Hello"
two="World"
+