I hereby claim:
- I am desterhuizen on github.
- I am desterhuizen (https://keybase.io/desterhuizen) on keybase.
- I have a public key ASAtO3gC1n1jf_iBzipVMgaE2tABtsOLh7BI08dZRoIV-go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
panes
ssh -i key.pem ec2-user@
set -o errexit | |
promptToExit() { | |
echo $1 "(Y/N)" | |
read yn | |
if [[ "$yn" != "y" && "$yn" != "Y" ]]; then | |
echo "Stoppping the process..." | |
exit; | |
fi | |
} |
exec - Returns last line of commands output
passthru - Passes commands output directly to the browser
system - Passes commands output directly to the browser and returns last line
shell_exec - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen - Opens read or write pipe to process of a command
proc_open - Similar to popen() but greater degree of control
pcntl_exec - Executes a program