Stats script: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
Paste in the following. | Paste in the following. | ||
PID=$$ | #!/bin/bash | ||
curl -s --progress-bar -b "entropy-support-login=mshooltz@liquidweb.com" -u (HD usename here):(hdpassword here) https://hd.int.liquidweb.com/stats/detail.mhtml | lynx -dump -stdin -nolist -width=350 | grep -A500 Responses > /tmp/$PID.stats | # compiled by mshooltz | ||
grep -A2 Responses /tmp/$PID.stats | |||
PID=$$ | |||
## add or remove people in the following Fashion | curl -s --progress-bar -b "entropy-support-login=mshooltz@liquidweb.com" -u <font color=red>(HD usename here):(hdpassword here)</font> https://hd.int.liquidweb.com/stats/detail.mhtml | lynx -dump -stdin -nolist -width=350 | grep -A500 Responses > /tmp/$PID.stats | ||
# | grep -A2 Responses /tmp/$PID.stats | ||
# grep (HD username) /tmp/$PID.stats | |||
# | ## add or remove people in the following Fashion | ||
# | |||
echo "" | # grep (HD username) /tmp/$PID.stats | ||
echo "ME" | # | ||
echo "" | |||
echo "ME" | |||
grep (HD username) /tmp/$PID.stats | grep (HD username) /tmp/$PID.stats | ||
echo "" | echo "" | ||
echo "" | echo "" | ||
echo "Support" | echo "Support" | ||
echo "" | echo "" | ||
echo "1st shift" | echo "1st shift" | ||
grep rhatt /tmp/$PID.stats | |||
echo "" | echo "" | ||
echo "2cnd shift" | echo "2cnd shift" | ||
grep rdrumheller /tmp/$PID.stats | |||
echo "" | echo "" | ||
echo "3rd shift" | echo "3rd shift" | ||
grep jhayhoe /tmp/$PID.stats | |||
rm -f /tmp/$PID.stats | |||
Now you will need to give the file execute perms. | Now you will need to give the file execute perms. |
Revision as of 18:57, 22 July 2011
Alright to use my custom response tracking script do the following.
vim /bin/stats
Paste in the following.
#!/bin/bash # compiled by mshooltz PID=$$ curl -s --progress-bar -b "entropy-support-login=mshooltz@liquidweb.com" -u (HD usename here):(hdpassword here) https://hd.int.liquidweb.com/stats/detail.mhtml | lynx -dump -stdin -nolist -width=350 | grep -A500 Responses > /tmp/$PID.stats grep -A2 Responses /tmp/$PID.stats ## add or remove people in the following Fashion # # grep (HD username) /tmp/$PID.stats # echo "" echo "ME" grep (HD username) /tmp/$PID.stats echo "" echo "" echo "Support" echo "" echo "1st shift" grep rhatt /tmp/$PID.stats echo "" echo "2cnd shift" grep rdrumheller /tmp/$PID.stats echo "" echo "3rd shift" grep jhayhoe /tmp/$PID.stats rm -f /tmp/$PID.stats
Now you will need to give the file execute perms.
chmod +x /bin/stats
Now all you have to do at the command line for your workstation, is type stats. Also you can add whoever you would like to track, in the file I have left a few examples in the file for you.