Created
October 28, 2013 12:09
-
-
Save whyvez/7195780 to your computer and use it in GitHub Desktop.
various bash commands
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
#!/usr/bin/env bash | |
# run cmd in background after shell logout | |
# http://www.cyberciti.biz/tips/nohup-execute-commands-after-you-exit-from-a-shell-prompt.html | |
nohub doCommand.sh & | |
url=http://example.com | |
# curl into var | |
count=$(curl $url) | |
# curl w/ headers http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/ | |
curl -i -H "Accept: application/json" $url | |
# count objects in aws s3 bucket | |
aws s3 ls s3://mybucket.com | wc -l | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ulimit -n 2048