kjacobsen

Web Application Warming

Apr 2nd, 2012
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Code Snippet from aperturescience.su
  2. # Parameters
  3.     [Parameter(Position=1, Mandatory=$false, HelpMessage="Page Listing")]$filelist="filelist.txt",
  4.     [Parameter(Position=2, Mandatory=$false, HelpMessage="base url")]$baseurl = "http://localhost/",
  5.  
  6. # Body
  7.  
  8. $pages = Get-Content $filelist
  9.  
  10. foreach ($page in $pages)
  11. {
  12.     $url = $baseurl + $page
  13.     wget $url -O output.file
  14. }
  15.  
  16. # Code Snippet from aperturescience.su
Advertisement
Add Comment
Please, Sign In to add comment