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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -o errexit | |
promptToExit() { | |
echo $1 "(Y/N)" | |
read yn | |
if [[ "$yn" != "y" && "$yn" != "Y" ]]; then | |
echo "Stoppping the process..." | |
exit; | |
fi | |
} |
- line 1: panes / tabs, panes will split the new tab as needed and tabs make a new tab for each host.
- line 2: command to enter befotre the hostname in each host
- line 3 -> X: The number of hosts you want to connect to.
panes
ssh -i key.pem ec2-user@
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: