Skip to content

Instantly share code, notes, and snippets.

@patrickmcelwee
Created January 8, 2015 18:56
Show Gist options
  • Save patrickmcelwee/3fe106a925749568afd4 to your computer and use it in GitHub Desktop.
Save patrickmcelwee/3fe106a925749568afd4 to your computer and use it in GitHub Desktop.
script to trigger Vivo rebuild
#!/bin/sh
wget -q --cookies=on --keep-session-cookies --save-cookies=/srv/web/apps/vivo/shared/cookie.txt 'http://localhost:8080/authenticate?loginName=USERNAME@SCHOOL.edu&loginPassword=PASSWORD&loginForm=1'
wget -q --referer=http://first_page --cookies=on --load-cookies=/srv/web/apps/vivo/shared/cookie.txt --keep-session-cookies --save-cookies=/srv/web/apps/vivo/shared/cookie.txt --post-data "rebuild=Rebuild" http://localhost:8080/SearchIndex
rm /srv/web/apps/vivo/shared/cookie.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment