This file contains hidden or 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
| OUTPUT TO filename | |
| [ APPEND ] [ VERBOSE ] | |
| [ FORMAT output-format ] | |
| [ ESCAPE CHARACTER character ] | |
| [ DELIMITED BY string ] | |
| [ QUOTE string [ ALL ] ] | |
| [ COLUMN WIDTHS ( integer, … ) ] | |
| [ HEXADECIMAL { ON | OFF | ASIS } ] | |
| [ ENCODING encoding ] |
This file contains hidden or 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/ruby | |
| class IPGenerator | |
| public | |
| def initialize(session_count, session_length) | |
| @session_count = session_count | |
| @session_length = session_length | |
| @sessions = {} | |
| end |
This file contains hidden or 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/python | |
| import time | |
| import datetime | |
| import random | |
| timestr = time.strftime("%Y%m%d-%H%M%S") | |
| f = open('access_log_'+timestr+'.log','w') | |
| ips=["123.221.14.56","16.180.70.237","10.182.189.79","218.193.16.244","198.122.118.164","114.214.178.92","233.192.62.103","244.157.45.12","81.73.150.239","237.43.24.118"] | |
| referers=["-","http://www.casualcyclist.com","http://bestcyclingreviews.com/top_online_shops","http://bleater.com","http://searchengine.com"] |
NewerOlder